From 71ecf64dfe72bd89791528a6e1a23780b7a0b6a8 Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Sun, 13 Jul 2025 15:44:39 -0400 Subject: [PATCH] adding back receiver and sender init script --- linux/osukiss/mailleur | 8 -------- mailleur.spec.in | 6 ++++-- 2 files changed, 4 insertions(+), 10 deletions(-) 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" -- 2.47.3