Skip to content

Instantly share code, notes, and snippets.

@carlosm3011
Created November 25, 2018 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlosm3011/e3ec39575dfbe005fe9814090c4d3ce7 to your computer and use it in GitHub Desktop.
Save carlosm3011/e3ec39575dfbe005fe9814090c4d3ce7 to your computer and use it in GitHub Desktop.
Using systemd to start the tracd standalone server
[Unit]
Description=Tracd Standalone Server
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/trac
# ExecStart=/usr/local/bin/tracd -d --pidfile /tmp/tracd.pid -p 80 -s /opt/trac/xt6
ExecStart=/usr/local/bin/tracd --pidfile /tmp/tracd.pid -p 80 -s /opt/trac/xt6
PIDFile=/tmp/tracd.pid
ExecStop=/bin/kill $MAINPID
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
@carlosm3011
Copy link
Author

Using systemd to start the tracd standalone server

Install file on /etc/systemd/system/tracd.service

Then run:

systemctl enable /etc/systemd/system/tracd.service
service tracd start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment