systemd.service
This commit is contained in:
22
tracd.service
Normal file
22
tracd.service
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Tracd Standalone Server
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
WorkingDirectory=/home/trac/
|
||||||
|
ExecStart=bash -c '/usr/sbin/tracd --pidfile /tmp/tracd.pid -p 8055 --basic-auth="*,.htpasswd,realm" $(ls -d */)'
|
||||||
|
PIDFile=/tmp/tracd.pid
|
||||||
|
ExecStop=/bin/kill $MAINPID
|
||||||
|
KillMode=process
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
PrivateTmp=yes
|
||||||
|
ProtectSystem=strict
|
||||||
|
ReadWritePaths=/home/trac
|
||||||
|
NoNewPrivileges=yes
|
||||||
|
User=trac
|
||||||
|
Group=trac
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user