Hi,
On Fri, Mar 26, 1999 at 08:34 +0100, Eivind Olsen wrote:
> Hello.
>
> Does anyone have any good scripts to put in /etc/rc.d to handle sound
> (through OSS 3.9.2g) and the mailer 'postfix'? I'm thinking about scripts
> in the same style as the other scripts that comes with SuSE Linux 6.0.
OSS can simply be launched by putting
<path>/soundon
into /sbin/init.d/boot.local.
> This is how my '/etc/rc.d/postfix' script looks like:
>
> -START-
> #! /bin/sh
>
> . /etc/rc.config
>
> # Determine the base and follow a runlevel link name.
> base=${0##*/}
> link=${base#*[SK][0-9][0-9]}
>
> # Force execution if not called by a runlevel directory.
> test $link = $base && SMTP=yes
> test "$SMTP" = yes || exit 0
>
> # The echo return value for success (defined in /etc/rc.config).
> return=$rc_done
> case "$1" in
> start)
> echo -n "Initializing SMTP port. (postfix)"
> startproc /usr/sbin/postfix start || return=$rc_failed
^^^^^ Cut this.
> echo -e "$return"
> ;;
> stop)
> echo -n "Shutting down SMTP port:"
> startproc /usr/sbin/postfix stop || return=$rc_failed
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This should be `killproc -TERM /usr/sbin/postfix'.
> echo -e "$return"
> ;;
> restart)
> $0 stop && $0 start || return=$rc_failed
> ;;
> reload)
> echo -n "Reload service postfix"
> startproc /usr/sbin/postfix reload
> echo -e "$return"
> ;;
Change the reload section to
reload)
$0 stop && $0 start || return=$rc_failed
;;
Ciao,
Stefan
--
To get out of this list, please send email to [EMAIL PROTECTED] with
this text in its body: unsubscribe suse-linux-e
Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the
archive at http://www.suse.com/Mailinglists/suse-linux-e/index.html