_                    _
  ___ | |__   __ _ _______ | |_
 / _ \| '_ \ / _` |_  / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
 \___/|_| |_|\__,_/___\___/ \__|

voidLinuxusage

  1. Create the service directory.
    mkdir /etc/sv/[SERVICE_NAME]
  2. Create the down file for testing.
    touch /etc/sv/[SERVICE_NAME]/down
  3. Create the run script.
    ${EDITOR} /etc/sv/[SERVICE_NAME]/run
  4. Add the executable permission to the run script.
    chmod +x /etc/sv/[SERVICE_NAME]/run
  5. Create the link on /var/services.
    ln -s /etc/sv/[SERVICE_NAME] /var/service/.
  6. Test the service.
    sv once [SERVICE_NAME]
  7. If it worked as expected, remove down.
    rm /etc/sv/[SERVICE_NAME]/down

back to top

linux

- voidLinux services

back to top

ohazot | about | ohazot.com <admin@ohazot.com>

voidLinux | Created:2025-12-16|Updated:2026-01-17|