wiki:ubuntu16.04.service

Create Service-File, e.g. /etc/systemd/system/trac.service:

[Unit]
Description=Wiki, Ticketing and Blog

[Service]
Type=simple
ExecStart=/usr/local/bin/tracd -s --port 8000 --base-path=/trac/ --auth=trac,/home/joerg/auth.file,trac /var/www/trac
User=joerg
Group=joerg

[Install]
WantedBy=multi-user.target

Enable using command

$ sudo systemctl enable trac
Created symlink from /etc/systemd/system/multi-user.target.wants/trac.service to /etc/systemd/system/trac.service.

Finally, start the service using sudo service trac start

See also: https://wiki.ubuntuusers.de/systemd/Service_Units/

Last modified 4 weeks ago Last modified on Apr 24, 2018, 9:20:10 AM