riboseinc / riffol

Initialization system in Rust
26 stars 4 forks source link

systemd equivalence: basic service options #23

Open ronaldtse opened 6 years ago

ronaldtse commented 6 years ago
[Service]
User=root
ExecStartPre=/usr/bin/bash -c '/provision/services.sh'
ExecStart=/usr/bin/sh -c '/etc/blah.sh'
ExecStartPost=/usr/libexec/mariadb-wait $MAINPID
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
Restart=on-failure
RestartSec=5