1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
[Unit]
Description=qcontrol
Requires=qcontrold.service
After=multi-user.target qcontrold.service
# If the config file is there, we assume qcontrol works on this machine.
ConditionPathExists=/etc/qcontrol.conf
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/usr/sbin/qcontrol statusled greenon
ExecStart=/usr/sbin/qcontrol powerled on
ExecStart=/usr/sbin/qcontrol buzzer short
ExecStop=/usr/sbin/qcontrol buzzer short
ExecStop=/usr/sbin/qcontrol statusled redon
ExecStop=/usr/sbin/qcontrol powerled 1hz
[Install]
WantedBy=multi-user.target
|