_ _
___ | |__ __ _ _______ | |_
/ _ \| '_ \ / _` |_ / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
\___/|_| |_|\__,_/___\___/ \__|
voidLinux —
usage
- Create the service directory.
mkdir /etc/sv/[SERVICE_NAME]
- Create the down file for testing.
touch /etc/sv/[SERVICE_NAME]/down
- Create the run script.
${EDITOR} /etc/sv/[SERVICE_NAME]/run
- Add the executable permission to the run script.
chmod +x /etc/sv/[SERVICE_NAME]/run
- Create the link on /var/services.
ln -s /etc/sv/[SERVICE_NAME] /var/service/.
- Test the service.
- If it worked as expected, remove down.
rm /etc/sv/[SERVICE_NAME]/down