Service Management
Starting, stopping or restarting a service in deepOfix is straightforward. The sv program takes care of these operations. sv helps manage services monitored by runsv. To specify a service, we need to specify the relevant folder or link in /var/service corresponding to the service.
Starting a service
We use the up command to start a service.
sv up easypush
Stopping a service
We use the down command to stop a running service.
sv down easypush
Restarting a service
In deepOfix, services are by default restartable, though they can be configured to run only once, and not restart. Normally, the term command can be used to restart a service.
sv term easypush
sv reads only the first character of the command so for the above, you can use
sv u # start a service sv d # stop a service sv t # restart a service