-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathexample.service
More file actions
36 lines (33 loc) · 866 Bytes
/
example.service
File metadata and controls
36 lines (33 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# cmake should replace the ~ with the path
# if cmake is not used, replace the ~ wir the correct path
# uncomment the needed items in this file
[Unit]
Description=Some Example server
# After=remote-fs.target memcached.service
After=syslog.target
# Requires=memcached.service
# AssertPathExists=/home/pi
# StartLimitBurst=5
# StartLimitIntervalSec=10
[Service]
Type=forking
PIDFile=/var/run/example/ExampleSrv.pid
RuntimeDirectory=example/
# Restart=on-failure
# RestartSec=1
# User=root
# Group=root
ExecStart=~/ExampleSrv
ExecReload=~/ExampleSrv -k
ExecStop=~/ExampleSrv -e
KillSignal=SIGTERM
# AmbientCapabilities=CAP_NET_BIND_SERVICE
# Nice=0
# PrivateTmp=yes
# KillMode=mixed
WorkingDirectory=~
# Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# StandardOutput=syslog
# StandardError=syslog
[Install]
WantedBy=multi-user.target