- Create a script in /etc/init.d, say we have it named as awesome_script.sh
- Make the script executable, chmod +x awesome_script.sh
- Make the daemon starts automatically when system starts
- sudo update-rc.d awesome_script.sh defaults
- Remove the daemon:
- sudo update-rc.d -f awesome_script.sh remove
No comments:
Post a Comment