initial commit of file from CVS for e-smith-nutUPS on Wed 12 Jul 09:01:20 BST 2023
This commit is contained in:
23
root/usr/lib/systemd/system/nut.service
Normal file
23
root/usr/lib/systemd/system/nut.service
Normal file
@@ -0,0 +1,23 @@
|
||||
[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
|
Reference in New Issue
Block a user