Directory change: Moved example to example/main to make room for other examples
This commit is contained in:
parent
60cb87f998
commit
a269e26c0d
19 changed files with 525 additions and 439 deletions
13
example/main/systemd/example.service
Normal file
13
example/main/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/main/systemd/example_restconf.service
Normal file
14
example/main/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