Mailinglist Archive: opensuse (3637 mails)

< Previous Next >
Re: [SLE] multiple startproc
Þann fimmtudagur 17 maí 2001 01:24 skrifaðir þú:
> I'm creating a suseified rpm/srpm complete with initscripts and
> rc.config entries for portsentry, but have run into a problem with the
> initscript itself. I can't find and way to launch 2 startprocs on it, for
> example
> startproc $PORTSENTRY -stcp
> startproc $PORTSENTRY -sudp
>
> because of the way startproc looks for the full command name to determine
> if it's already running. Anyone know a workaround or alternative which
> enables me to still use startproc.

One workaround which seems obvious:

cd /usr/bin
ln sentry tsentry
ln sentry usentry


startproc $TPORTSENTRY -stcp
startproc $UPORTSENTRY -sudp

or better yet, in the scripts ( if the design allows it )

TPORTSENTRY="/usr/bin/sentry -stcp"
UPORTSENTRY="/usr/bin/sentry -sudp"

startproc $TPORTSENTRY
startproc $UPORTSENTRY

-tosi

< Previous Next >
Follow Ups
References