]> SAFE projects GIT repository - jmp/mailleur/commitdiff
adding back receiver and sender init script
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sun, 13 Jul 2025 19:44:39 +0000 (15:44 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sun, 13 Jul 2025 19:44:39 +0000 (15:44 -0400)
linux/osukiss/mailleur
mailleur.spec.in

index c60b56663aaed201aebf0b40d43eb45d4fea6588..2bdf58c88b9e11060f7a4da6eaa897c0415dd8c7 100644 (file)
 
 APPNAME=mailleur
 DAEMON=receiver
-DAEMON_PID=/run/${APPNAME}/${DAEMON}.lock
 
 #checking profile
 if [ -f  /etc/profile ] ; then
   . /etc/profile
   fi
 
-# Some functions to make the below more readable
-
-#loading load configuration file
-if [ -f  /etc/sysconfig/$APPNAME ] ; then
-  . /etc/sysconfig/$APPNAME
-fi
-
 #--------------------------------------------------------------
 #to start all mailleur daemon
 #--------------------------------------------------------------
index 5e0654737fda76c2f3024bcceaca7057d0d50798..3c90bee2bd0e4986fd6f694b4af4369bdcc1ced9 100644 (file)
@@ -66,7 +66,7 @@ if [ "$1" = 0 ]; then
   case "$OS" in
     "sysv"     |                               \
     "osukiss"  )
-      for action in %{name}
+      for action in %{name} receiver sorter
        do
         %{_initrddir}/${action} stop > /dev/null 2>&1 || :
         %{_sbindir}/chkconfig --del ${action} 
@@ -117,12 +117,14 @@ if [ "$1" = 1 ]; then
   case "$OS" in
     "sysv"     |                                       \
     "osukiss"  )
-      for action in %{name}
+      for action in %{name} receiver sorter
        do
         %{__ln_s}                                      \
                %{_datadir}/%{name}/linux/$OS/${action} \
                %{_initrddir}/${action}
        done
+      %{_sbindir}/chkconfig --add %{name}
+      %{_sysconfdir}/rc.d/init.d/%{name} condrestart > /dev/null 2>&1 || :
       ;;
     *          )
       echo "Unable to find distribution"