svc(8)

πŸ“¦
version 0.76 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ svc(8) ✨

System Manager's Manual πŸ’– svc(8) β€” bestie, this is the little command that tells your services what to do. πŸ‘‘


🌸 NAME 🌸

svc β€” controls services monitored by supervise(8). πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

svc [ -udopchaitkx ] services

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so services is literally just any number of arguments, and each argument names a directory used by supervise(8). that's it, that's the whole vibe. ✨

and svc applies all the options to each service in turn β€” like, every single service gets the same treatment, no favorites. 🫢


πŸ’– OPTIONS πŸ’–

  • -u β€” Up. if the service isn't running, start it. and if the service stops? restart it. keep it alive, main character energy. πŸ”₯
  • -d β€” Down. if the service is running, send it a TERM signal and then a CONT signal. after it stops, do not restart it. it's over, periodt. πŸ’€
  • -o β€” Once. if the service isn't running, start it. do not restart it if it stops. one and done, no encore. πŸŽ€
  • -p β€” Pause. send the service a STOP signal. βœ‹
  • -c β€” Continue. send the service a CONT signal. okay keep going bestie πŸ’–
  • -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. no cap, this one does not play. πŸ’€
  • -q β€” Quit. send the service a QUIT signal. πŸšͺ
  • -1 β€” send the service a USR1 signal. 1️⃣
  • -2 β€” send the service a USR2 signal. 2️⃣
  • -x β€” Exit. supervise(8) will exit as soon as the service is down.
🚨 okay real talk about -x: if you use this option on a stable system, you're doing something wrong. supervise(8) is designed to run forever. it's giving "why would you do that" energy. 😭

🌈 SEE ALSO 🌈

supervise(8), svok(8), svstat(8), svscanboot(8), svscan(8), readproctitle(8), fghack(8), pgrphack(8), multilog(8), tai64n(8), tai64nlocal(8), setuidgid(8), envuidgid(8), envdir(8), softlimit(8), setlock(8)

http://cr.yp.to/daemontools.html 🧚


and that's the whole page, bestie!! 🫢 this one lives in the System Manager's Manual, and it's signed off as svc(8) at the bottom β€” go forth and supervise something iconic. πŸ‘‘βœ¨πŸ’–

πŸ“¦ where this page comes from