services
services are easy and fun. they live in /etc/sv. you can write them yourself. services in /etc/sv/on are started automatically at boot.
a posix sh script located at /bin/sv is used to manage services. here are a list of things it does.
- sv up [service] : starts service now
- sv down [service] : stops service now
- sv add [service] : symlinks service into /etc/sv/on so it starts at boot
- sv remove [service] : un-symlinks service from /etc/sv/on
- sv status [service] : tells you the status... of a service.
- sv list : lists all available services
- sv enabled : lists services in /etc/sv/on
services are pid tracked in order to check their status. the pid's are in /etc/sv/pid.