Added systemd example files under example/systemd
This commit is contained in:
parent
ee946a00f5
commit
fd19640579
6 changed files with 40 additions and 3 deletions
13
example/systemd/example.service
Normal file
13
example/systemd/example.service
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Starts and stops a clixon example service on this system
|
||||
Wants=example_restconf.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
User=root
|
||||
RestartSec=60
|
||||
Restart=on-failure
|
||||
ExecStart=/usr/local/sbin/clixon_backend -s running -f /usr/local/etc/example.xml
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
14
example/systemd/example_restconf.service
Normal file
14
example/systemd/example_restconf.service
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=Starts and stops an example clixon restconf service on this system
|
||||
Wants=example.service
|
||||
After=example.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=www-data
|
||||
WorkingDirectory=/www-data
|
||||
Restart=on-failure
|
||||
ExecStart=/www-data/clixon_restconf -f /usr/local/etc/example.xml
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue