ajout unit systemd

This commit is contained in:
benoit 2016-07-23 19:43:04 +02:00
parent 47bc500b29
commit a5fba0d058
1 changed files with 34 additions and 0 deletions

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
@ -20,4 +37,21 @@ Dans un tmux ou screen.
# sudo -iu wiki
$ 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
~~~