Tag Info

Hot answers tagged

17

you want to add its init script to the approriate run level. The init script is typically /etc/init.d/apache2 where you could manually run /etc/init.d/apache2 start to start it. on Gentoo you would write: rc-update add apache2 default On Ubuntu/Debian this works: sudo update-rc.d apache2 defaults on Redhat/Fedora a little googling shows this: ...


15

Your admins probably have some startup scripts they are pushing through group policy and could be what is causing the delay. To see exactly what runs on startup from your computer, take a look at Autoruns from SysInternals. If you have a lot of stuff trying to run at once, it may be worth it to look at using Startup Delayer to force your startup apps to ...


13

I have a program that is launched on system startup using Task Scheduler on Windows Server 2012. The program must start even if the computer reboots automatially. Then why do you not make it a system service, as the windows specs define? How can I solve this? You can not. Background programs are not supposed to interact with the UI. Or: the UI ...


12

I have done exactly what you speak of before. I found the industry has a very strong barrier to entry, but here is what I did. Rented a dedicated server with a control panel, in my case Plesk (linux or windows) Bought a domain name to be the "home" of my hosting business The server you buy will likely come with 4-7 IP addresses, you can use these to ...


12

The EC2Config is configured by default to rename the host on first startup. Renaming the host on windows requires a reboot and therefore every instance reboots once after first startup. You can disable the renaming of the host if you do not use the internal DNS for the instance. More details here: Windows Configuration Service: ...


11

Here is what finally worked for me. This assumes you are the root user. touch /etc/init.d/apache2 chmod 755 /etc/init.d/apache2 vi /etc/init.d/apache2 (edit it as shown below) chkconfig --add apache2 chkconfig --list apache2 (to verify that it worked) Contents of /etc/init.d/apache2: #!/bin/bash # # apache2 Startup script for the Apache HTTP ...


11

I say, as soon as you can afford one. Devs aren't systems guys. They have no idea about how to best optimise MySQL to get the best performance. They don't know about Keepalive on Apache when running on a VM. Those are 2 examples I've come across of a developer setting up a startup's webserver, and buggering it up in the process. Many developers also have ...


10

apt-get install sysv-rc-conf As others have pointed out, here is also update-rc.d for the cmd line. Run update-rc.d apache2 disable to disable apache2 from all run levels.


10

The "stop" term does not prevent the daemon from starting but rather shuts it down while entering the specified runlevel. If you just want to remove a service/daemon from a single runlevel, update-rc.d as pointed out bei freiheit or simply remove the symlink from /etc/rcX.d/, where X is your runlevel. If you don't want the service to start automatically, ...


10

Does Caps Lock work (in terms of changing the caps indicator) when it's hung? If not, that would suggest it's completely borked by that point rather than just a process taking forever to get properly started. If that works, does Ctrl-Shift-Esc bring up task manager? That could be useful to show any processes taking a long time, if the logger isn't helping ...


10

The main problem is that it hangs at the login screen for ages and sometimes never gets to the desktop. If this is before you login, DNS is likely to blame. If it's after you login, I'd guess a profile issue. Create a new user and profile and try with that. Some additional things to try: Disconnect from network (wireless and wired). This will ...


10

You want to use a startup script for this. The link provided is for a logon script, but the process is the same for a startup script. You just configure it in Computer Policies instead. If you don't have Group Policy available, or don't want to manage it there, the steps are the same to configure this in the Local Policy. You'll either use the Group ...


8

/etc/init.d is just the location for the start up scripts to live. But having a script there doesn't do anything automatically. The init system uses the symbolic links in the /etc/rc#.d directories to the scripts in the /etc/init.d folder. The name of the symbolic link needs to start with an S to run the script with the start option and K to run the ...


8

Usually, you need to add a startup script in /etc/rc.d/ or /etc/rc.local. Thats how all daemons are started. However you need to have root permissions for this. Since you tagged it as ssh, I guess you don't have root permissions. So you can create a crontab entry that runs a script to launch your process after every reboot: $ crontab -e Add the following ...


8

You can use a Group Policy (or the local policy) to assign a startup script; you can configure it in the section Computer Configuration -> Windows Settings -> Scripts (Startup/Shutdown). You can also use Scheduled Tasks to configure a task to run at computer startup.


7

Use a computer start up script. You can do this using either local policy editor (standalone PC or on a domain) or group policy editor (on a domain only.) Navigate to this settings via Computer Settings > Windows Settings > Scripts > Startup The script will run as the local system account


6

No matter what distro I nowadays use, I have learnt my lesson: if I want to make sure something comes up at boot, I will reboot the server and see what happens. Just schedule a maintenance window for your server (if needed) and perform couple of test restarts at that time. See if it works. In the past I've been sure that "this will start during next ...


6

At this scale you should already be looking at recording sufficient detail about what the current employees are spending their time on to answer the question. From your description I'd be getting everybody to track which product/site/service they are spending time on, what they are doing (admin, analysis, pre-launch development, bug fixing, other). If you've ...


6

There doesn't seem to be a clean way to fully manage a cold start of a virtual infrastructure once HA is configured on the individual hosts. Enabling HA and DRS seems to disable the Virtual Machine Startup and Shutdown options on the host servers. However, any ordering set before the host is moved into the cluster seems to stick. If the number of hosts is ...


5

If it is Windows 2008, or 2008 R2, the task Scheduler has a trigger for "At startup". If an earlier version of server, you may be able to use the HKLM/Software/Microsoft/Windows/Currentversion/Run key to launch a process (not recommended)


5

Start with "Resultant Set of Policy" (rsop.msc) and see if the GPO containing your script is being processed. Most often, I find, problems with policy application end up being a discrepancy between the sysadmin's understanding of where to link a GPO and how the list of GPOs that apply to a given user or computer are actually calculated by the OS. If the GPO ...


5

If you buy into to typical MS marketing they will tell you that when you look at the TCO of a solution the cost of the OS is a very small amount. Your question isn't exactly clear if you are talking about a Web service or managing client PCs: If Web then.... Lets face it - if your clients want an ASP.NET/MSSql solution they should go for a Windows server. ...


5

My opinion : I'm using less and less proprietary software every year because most problems with it are license-related. Proprietary software means bureaucratic hassle; free software means technical problems. I can manage technical problems, but I wouldn't touch administrative problems with a ten foot pole. So if you're a technical guy, a programmer, OSS is ...


5

There is no definite answer to this because that's dependent on EC2's current load. You may also experience capacity issues. In my experience I get EC2 startups in about a minute to three for a Small in west-1b. I don't think Amazon even has an SLA to guarantee the ability to start new instances. Rackspace Cloud Server 256MB is also about a minute but I've ...


5

Purchase. It's usually cheaper since your large 1u rack server companies are buying by the 1000s and you're not. Additionally when you need more the next month, they show up in five days. As a startup your time is better spent on building features, doing performance testing, etc which are all things you can't buy.


4

You can try enabling verbose startup status messages in the registry. It might help you determine what causes the hang during logon. Go To: [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] To enable verbose status messages create a new DWORD value called "verbosestatus" and set it to "1". An additional value called ...


4

BootViz is a Microsoft tool that quantifies what is happening in your bootup sequence for Windows XP (only, not for Vista or 2000). It usually makes a substantial difference in the troubleshooting process by giving you something to investigate other than "the computer is slow!" Other suggestions: McAfee AV 8.7 has a few bugs that slow boot time with ...


4

Short: There is no reliable way to do this quickly. Long: Current Debian (Debian unstable as of 2012-06-01) has currently no reliable short way to consistently disable a service/daemon. – Because an upgrade of a daemon package unconditionally runs “/etc/init.d/package restart”, having it disabled for this runlevel or not. To make sure a daemon doesn’t ...



Only top voted, non community-wiki answers of a minimum length are eligible