fixes to the service file; + former stub /etc/init.d/plc becomes /usr/bin/plc-ctl
[myplc.git] / systemd / plc.service
1 [Unit]
2 Description=PLC Service
3 After=network.target
4
5 [Service]
6 Type=oneshot
7 ExecStart=/usr/bin/plc-ctl start
8 RemainAfterExit=true
9 ExecStop=/usr/bin/plc-ctl stop
10 ExecReload=/usr/bin/plc-ctl reload
11 StandardOutput=journal
12
13 [Install]
14 WantedBy=multi-user.target