diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2020-05-07 11:34:18 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-06-02 12:32:36 +0200 |
commit | 9da3f878a2cd127a1beeeae97889d1d691125e89 (patch) | |
tree | b1ddcc086f2b62a5e80d69f0a8b11480171ac9eb /admin/Sources | |
parent | b8774e743d80079b0827fdbf3f2034e2e7f168b3 (diff) |
#981 Add systemd unit file
The ogAdmServer needs to be started after MySQL, because it queries the
DB at the beginning to obtain the schedules.
This commit adds a systemd unit file that force OpenGnsys service to
start after MySQL service
Diffstat (limited to 'admin/Sources')
-rw-r--r-- | admin/Sources/Services/opengnsys.service | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/admin/Sources/Services/opengnsys.service b/admin/Sources/Services/opengnsys.service new file mode 100644 index 00000000..89b8c492 --- /dev/null +++ b/admin/Sources/Services/opengnsys.service @@ -0,0 +1,25 @@ +# OpenGnsys systemd service file + +[Unit] +Documentation=https://opengnsys.es/trac/wiki/En%3ADocumentacionUsuario +SourcePath=/etc/init.d/opengnsys +Description=LSB: OpenGnsys system services +Before=multi-user.target +Before=graphical.target +Requires=mysql.service +After=mysql.service + +[Install] +WantedBy=multi-user.target + +[Service] +Type=forking +Restart=no +TimeoutSec=5min +IgnoreSIGPIPE=no +KillMode=process +GuessMainPID=no +RemainAfterExit=yes +SuccessExitStatus=5 6 +ExecStart=/etc/init.d/opengnsys start +ExecStop=/etc/init.d/opengnsys stop |