source: admin/Sources/Services/opengnsys.service @ 1d1e06d

Last change on this file since 1d1e06d was 9da3f87, checked in by OpenGnSys Support Team <soporte-og@…>, 5 years ago

#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

  • Property mode set to 100644
File size: 535 bytes
Line 
1# OpenGnsys systemd service file
2
3[Unit]
4Documentation=https://opengnsys.es/trac/wiki/En%3ADocumentacionUsuario
5SourcePath=/etc/init.d/opengnsys
6Description=LSB: OpenGnsys system services
7Before=multi-user.target
8Before=graphical.target
9Requires=mysql.service
10After=mysql.service
11
12[Install]
13WantedBy=multi-user.target
14
15[Service]
16Type=forking
17Restart=no
18TimeoutSec=5min
19IgnoreSIGPIPE=no
20KillMode=process
21GuessMainPID=no
22RemainAfterExit=yes
23SuccessExitStatus=5 6
24ExecStart=/etc/init.d/opengnsys start
25ExecStop=/etc/init.d/opengnsys stop
Note: See TracBrowser for help on using the repository browser.