24 lines
824 B
SYSTEMD
24 lines
824 B
SYSTEMD
|
[Unit]
|
||
|
Description=Network UPS Tools - Parent service for Koozali SME Server
|
||
|
After=local-fs.target network.target network-online.target
|
||
|
Before=nut-server.service
|
||
|
|
||
|
[Service]
|
||
|
ExecStartPre=/sbin/e-smith/service-status nut
|
||
|
ExecStartPre=-/sbin/e-smith/expand-template /etc/sysconfig/ups
|
||
|
ExecStartPre=-/sbin/e-smith/expand-template /etc/ups/ups.conf
|
||
|
ExecStartPre=-/sbin/e-smith/expand-template /etc/ups/upsd.conf
|
||
|
ExecStartPre=-/sbin/e-smith/expand-template /etc/ups/upsd.users
|
||
|
ExecStartPre=-/sbin/e-smith/expand-template /etc/ups/upsmon.conf
|
||
|
ExecStartPre=-/sbin/e-smith/expand-template /etc/ups/upssched.conf
|
||
|
|
||
|
# The dummy program will exit
|
||
|
Type=oneshot
|
||
|
# Execute a dummy program
|
||
|
ExecStart=/bin/true
|
||
|
# This service shall be considered active after start
|
||
|
RemainAfterExit=yes
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target sme-server.target
|