systemd.service

This commit is contained in:
2022-10-19 05:39:49 -04:00
parent 970b53670d
commit 738f59d830

22
tracd.service Normal file
View 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