To enable /etc/rc.local file run on system startup on servers runing systemd, you can run
systemctl enable rc-local
Now you need to create file /etc/rc.local with 755 permission.
touch /etc/rc.local chmod 755 /etc/rc.local
See Autostart
To enable /etc/rc.local file run on system startup on servers runing systemd, you can run
systemctl enable rc-local
Now you need to create file /etc/rc.local with 755 permission.
touch /etc/rc.local chmod 755 /etc/rc.local
See Autostart
To autostart icecast using systemd, create a unit file
vi /etc/systemd/system/icecast.service
Add following content
[Unit]
Description=Icecast Network Audio Streaming Server
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/icecast -c /etc/icecast/icecast.xml
ExecReload=/bin/kill -HUP $MAINPID
User=icecast
Group=icecast
WorkingDirectory=/home/icecast/
[Install]
WantedBy=multi-user.target
Enable icecast to start on boot with
systemctl enable icecast
To start/stop/restart icecast, use
systemctl start icecast
systemctl stop icecast
systemctl restart icecast
Enable rc.local
Start a program after reboot using cronjob
Auto Start Nginx on Windows
VMware ESXi set Virtual Machine to start on Boot
Start meguca on boot
Autostart icecast using systemd
Auto restart lighttpd on crash
Supervisord
On Linux, auto start configurations are stored in
~/.config/autostart/
To auto start Nginx on Windows, download
http://nssm.cc/download
Extract the file, you will find “nssm.exe” file for 32 and 64 bit windows. Copy the file for your Windows version to a folder like
C:\utils\nssm.exe
Start a command promt as user Administrator, then to go the folder where nssm.exe is, then run
.\nssm.exe install “Nginx”"
In the GUI select the nginx.exe path, click install service.
Now in Service Manager, you will see new service Nginx, that is set to autostart by default.
You can right click service name and select start.