ajout unit systemd

This commit is contained in:
benoit 2016-07-23 19:43:04 +02:00
parent 47bc500b29
commit a5fba0d058

View file

@ -11,6 +11,23 @@ $ mayan-edms.py runserver&disown
## Détacher screen/tmux…
~~~
### Unité systemd
~~~
[Unit]
Description=GED Mayan EDMS.
After=network.target
[Service]
User=ged
WorkingDirectory=/home/ged
ExecStart=/home/ged/venv/bin/mayan-edms.py runserver
Type=simple
[Install]
WantedBy=default.target
~~~
## Wiki GitIT
### Démarrer le service
@ -21,3 +38,20 @@ Dans un tmux ou screen.
$ gitit -f my.Conf
## Détacher le screen/tmux…
~~~
### Unité systemd
~~~
[Unit]
Description=gitit wiki.
After=network.target
[Service]
User=wiki
WorkingDirectory=/home/wiki
ExecStart=/home/wiki/.cabal/bin/gitit -f /home/wiki/my.conf
Type=simple
[Install]
WantedBy=default.target
~~~