FS#40123 - [tracd] do not start with systemctl script
Attached to Project:
Community Packages
Opened by Ferllings (ferllings) - Monday, 28 April 2014, 09:31 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 15 August 2016, 11:42 GMT
Opened by Ferllings (ferllings) - Monday, 28 April 2014, 09:31 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 15 August 2016, 11:42 GMT
|
Details
Description:
I can launch trac using the command line, but the same command line does not work on the systemctl file. But no error in the status $ sudo systemctl start tracd $ sudo systemctl status tracd ● tracd.service - Trac service Loaded: loaded (/usr/lib/systemd/system/tracd.service; enabled) Active: inactive (dead) since Mon 2014-04-28 12:27:51 CEST; 21s ago Process: 27636 ExecStart=/usr/bin/tracd -d -b localhost -p 3050 --protocol=http --basic-auth="bug-bash,/srv/http/bug-bash/.htpasswd,Login" -s /var/opt/trac/projects/bug-bash (code=exited, status=0/SUCCESS) Main PID: 27637 (code=exited, status=0/SUCCESS) Apr 28 12:27:51 xxxxx systemd[1]: Started Trac service. Additional info: * package version(s): 1.0.1-7 * config and/or log files etc. /etc/systemd/system/multi-user.target.wants/tracd.service [Unit] Description=Trac service After=network.target remote-fs.target nss-lookup.target [Service] Type=forking # Example: copy it into /etc/systemd/ and edit. ExecStart=/usr/bin/tracd -d -b localhost -p 3050 --protocol=http --basic-auth="bug-bash,/srv/http/bug-bash/.htpasswd,Login" -s /var/opt/t$ [Install] WantedBy=multi-user.target Steps to reproduce: |
This task depends upon
# pacman -S trac
# htpasswd /tmp/passwd user
# systemctl start tracd
# ps fax | grep trac
17431 ? S 0:00 /usr/bin/python2 /usr/bin/tracd -d -b localhost -p 8080 --auth /tmp,/tmp/passwd,realm /tmp
[root@negre xane]# systemctl status tracd
● tracd.service - Trac service
Loaded: loaded (/usr/lib/systemd/system/tracd.service; enabled; vendor preset: disabled)
Active: inactive (dead) since dc 2015-03-04 11:14:05 CET; 1s ago
Process: 24907 ExecStart=/usr/bin/tracd -d -p 8000 /mnt/magatzem/docencia/trac-docencia/tasques (code=exited, status=0/SUCCESS)
Main PID: 24910 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/tracd.service
mar 04 11:14:05 negre systemd[1]: Started Trac service.
[root@negre xane]# ps fax | grep trac
24915 pts/1 S+ 0:00 \_ grep trac
tracd -d -p 8000 /mnt/magatzem/docencia/trac-docencia/tasques
[root@negre xane]# cat /etc/systemd/system/multi-user.target.wants/tracd.service
[Unit]
Description=Trac service
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=simple
# Example: copy it into /etc/systemd/ and edit.
ExecStart=/usr/bin/tracd -d -p 8000 --basic-auth="*,/mnt/magatzem/docencia/trac-docencia/contrasenyes.txt,tasques" /mnt/magatzem/docencia/trac-docencia/tasques
# was /usr/bin/tracd -b localhost -p 8080 --auth /tmp,/tmp/passwd,realm /tmp
[Install]
WantedBy=multi-user.target
[root@negre xane]# systemctl start tracd
[root@negre xane]# systemctl start tracd.service
[root@negre xane]# systemctl enable tracd.service
[root@negre xane]# systemctl status tracd.service
● tracd.service - Trac service
Loaded: loaded (/usr/lib/systemd/system/tracd.service; enabled; vendor preset: disabled)
Active: inactive (dead) since dj 2015-03-05 15:18:47 CET; 11s ago
Main PID: 1820 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/tracd.service
mar 05 15:18:46 negre systemd[1]: Started Trac service.
[root@negre xane]# systemctl | grep trac
[root@negre xane]#
Steps to reproduce:
$ trac-admin /tmp/trac-test initenv
few <enter>s
$ systemctl edit tracd
[Service]
User=sergej
ExecStart=
ExecStart=/usr/bin/tracd -b localhost -p 8080 /tmp/trac-test/
$ systemctl start tracd
Open http://127.0.0.1:8080/trac-test in browser