ajout unit systemd
This commit is contained in:
parent
47bc500b29
commit
a5fba0d058
1 changed files with 34 additions and 0 deletions
|
@ -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
|
||||
~~~
|
Loading…
Reference in a new issue