Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   start-stop-daemon    ( 8 )

запускать и останавливать программы системных демонов (start and stop system daemon programs)

  Name  |  Synopsis  |  Description  |  Commands  |  Options  |  Exit  |    Examples    |

Примеры (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