question

steve-carter avatar image
steve-carter asked

Arguements for the "svc" command

I have seen a few example of using the "svc" command once logged in via ssh on this forum. I also note there have been a bunch or arguments after the svc command such as svc -d, svc - k and svc -t are few that I've seen (along with something else afterwards which varies)
Is there a command line reference somewhere that shows what all of these args after svc are and what they do?


I added this to the modifications space as that is the underlying reason for my question.


Thankyou

Venus OS
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

2 Answers
Kevin Windrem avatar image
Kevin Windrem answered Ā·
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

craig-westlake avatar image
craig-westlake answered Ā·

Try https://cr.yp.to/daemontools/svc.html

  • -u: Up. If the service is not running, start it. If the service stops, restart it.
  • -d: Down. If the service is running, send it a TERM signal and then a CONT signal. After it stops, do not restart it.
  • -o: Once. If the service is not running, start it. Do not restart it if it stops.
  • -p: Pause. Send the service a STOP signal.
  • -c: Continue. Send the service a CONT signal.
  • -h: Hangup. Send the service a HUP signal.
  • -a: Alarm. Send the service an ALRM signal.
  • -i: Interrupt. Send the service an INT signal.
  • -t: Terminate. Send the service a TERM signal.
  • -k: Kill. Send the service a KILL signal.
  • -x: Exit. supervise will exit as soon as the service is down. If you use this option on a stable system, you're doing something wrong; supervise is designed to run forever.
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Related Resources