Tag Info

Hot answers tagged

21

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: ...


16

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.


16

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, ...


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

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: ...


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 ...


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

Get a Virtual Machine somewhere. It's still dedicated, dirt cheap, and you can move it in or out of your control as you like. Backup and Restore is also easy. The day of dedicated REAL hardware is over.


11

When the cost of the staff outweighs the risk to your business of outages and data loss that would be prevented by the staff. It's as simple as that.


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

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 ...


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 ...


9

The common set is simply 755 even though only root should be running them. So: chmod 0755 <file>


9

/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 ...


9

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.


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 ...


7

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 ...


7

W32time will not start automatically if the PC is not in a domain. Damn Microsoft! Try to run this: sc triggerinfo w32time start/networkon stop/networkoff


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

Define a startup script with your desired BAT file. Do this either via Local Computer Policy (for standalone machines) or via GPO (if in a domain.)


6

Use Group Policy to run a Computer Startup script - this will run when the machine starts up without needing someone to login


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

I've figured it out. First I modified /etc/init/start-ttys.conf to have this for the script section: script . /etc/sysconfig/init for tty in $(echo $ACTIVE_CONSOLES) ; do [ "$RUNLEVEL" = "5" -a "$tty" = "$X_TTY" ] && continue if [ "$tty" == "/dev/tty1" ]; then initctl start myjob TTY=$tty ...


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

Files in /etc/profile.d/ are run when a user logs in (unless you've modified /etc/profile to not do this) and are generally used to set environment variables.


5

Adding solution we came to in comments as a full answer for completeness... Testing with su/sudo showed that while mysqld complained of permission errors, the mysql user could indeed successfully write to the folder, making it clear this was not a file system permission problem. (A useful first step if faced with a similar problem) Some distributions of ...



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