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