запускать и останавливать программы системных демонов (start and stop system daemon programs)
Примеры (Examples)
Start the food
daemon, unless one is already running (a process
named food, running as user food, with pid in food.pid):
start-stop-daemon --start --oknodo --user food --name food \
--pidfile /run/food.pid --startas /usr/sbin/food \
--chuid food -- --daemon
Send SIGTERM
to food
and wait up to 5 seconds for it to stop:
start-stop-daemon --stop --oknodo --user food --name food \
--pidfile /run/food.pid --retry 5
Demonstration of a custom schedule for stopping food
:
start-stop-daemon --stop --oknodo --user food --name food \
--pidfile /run/food.pid --retry=TERM/30/KILL/5