From a5fba0d058447a1784777e82f48fcf4b31894ae3 Mon Sep 17 00:00:00 2001 From: benoit Date: Sat, 23 Jul 2016 19:43:04 +0200 Subject: [PATCH] ajout unit systemd --- Infos Haruna.page | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Infos Haruna.page b/Infos Haruna.page index 9d0a92a..204cb95 100644 --- a/Infos Haruna.page +++ b/Infos Haruna.page @@ -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 ~~~ \ No newline at end of file