From 9da3f878a2cd127a1beeeae97889d1d691125e89 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Thu, 7 May 2020 11:34:18 +0200 Subject: #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 --- installer/opengnsys_installer.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'installer/opengnsys_installer.sh') diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh index 2553ab76..cde604c3 100755 --- a/installer/opengnsys_installer.sh +++ b/installer/opengnsys_installer.sh @@ -1461,6 +1461,8 @@ function openGnsysConfigure() echoAndLog "${FUNCNAME}(): Copying init files." cp -a $WORKDIR/opengnsys/admin/Sources/Services/opengnsys.init /etc/init.d/opengnsys + cp -a $WORKDIR/opengnsys/admin/Sources/Services/opengnsys.service \ + /lib/systemd/system/opengnsys.service cp -a $WORKDIR/opengnsys/admin/Sources/Services/opengnsys.default /etc/default/opengnsys # Deshabilitar servicios de BitTorrent si no están instalados. if [ ! -e /usr/bin/bttrack ]; then -- cgit v1.2.3-18-g5258