From: Jean-Marc Pigeon (Delson) Date: Sun, 13 Jul 2025 19:44:39 +0000 (-0400) Subject: adding back receiver and sender init script X-Git-Tag: tag-0.14~100 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=71ecf64dfe72bd89791528a6e1a23780b7a0b6a8;p=jmp%2Fmailleur adding back receiver and sender init script --- diff --git a/linux/osukiss/mailleur b/linux/osukiss/mailleur index c60b566..2bdf58c 100644 --- a/linux/osukiss/mailleur +++ b/linux/osukiss/mailleur @@ -24,20 +24,12 @@ 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 #-------------------------------------------------------------- diff --git a/mailleur.spec.in b/mailleur.spec.in index 5e06547..3c90bee 100644 --- a/mailleur.spec.in +++ b/mailleur.spec.in @@ -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"