systemd startup script

Nagy Ákos nagy.akos at codespring.ro
Fri May 6 11:51:57 UTC 2016


Hi,

I wrote a systemd startus script, and test it on Ubuntu 16.04.
I try to create a pull request, but i'm not familiar with it.

kallithea.service:
[Unit]
Description=Kallithea daemon
Requires=celeryd.service

[Service]
PIDFile=/srv/kallithea/kallithea.pid
Type=forking
User=kallithea
Group=kallithea
WorkingDirectory=/srv/kallithea/
Environment=VIRTUAL_ENV="$STATEDIR/venv"
Environment=PATH="$VIRTUAL_ENV/bin:$PATH"
ExecStart=/srv/kallithea/venv/bin/paster serve /srv/kallithea/my.ini 
--daemon --pid-file=/srv/kallithea/kallithea.pid 
--log-file=/srv/kallithea/kallithea.log

[Install]
WantedBy=multi-user.target

celeryd.service:
[Unit]
Description=Celeryd daemon start

[Service]
PIDFile=/srv/kallithea/celeryd.pid
Type=simple
User=kallithea
Group=kallithea
WorkingDirectory=/srv/kallithea/
Environment=VIRTUAL_ENV="$STATEDIR/venv"
Environment=PATH="$VIRTUAL_ENV/bin:$PATH"
ExecStart=/srv/kallithea/venv/bin/paster celeryd /srv/kallithea/my.ini 
--pidfile=/srv/kallithea/celeryd.pid --logfile=/srv/kallithea/celeryd.log

[Install]
WantedBy=multi-user.target


-- 
Nagy Ákos
0748219066
SC Softech SRL
Str. Frunzisului, Nr. 29
400664 Cluj



More information about the kallithea-general mailing list