You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
621 B
31 lines
621 B
24 years ago
|
#!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc
|
||
|
##
|
||
|
## rc.uucp -- Run-Commands for UUCP Daemon
|
||
|
##
|
||
|
|
||
|
%common
|
||
|
uucp_pidfile="@l_prefix@/var/uucp/run/uucpd.pid"
|
||
|
uucp_start () {
|
||
|
( @l_prefix@/sbin/uucpd uucp @l_prefix@/sbin/uucico -l \
|
||
|
</dev/null >/dev/null 2>&1 &
|
||
|
echo "$!" >$uucp_pidfile
|
||
|
) </dev/null >/dev/null 2>&1
|
||
|
}
|
||
|
uucp_stop () {
|
||
|
if [ -f $uucp_pidfile ]; then
|
||
|
kill -TERM `cat $uucp_pidfile`
|
||
|
sleep 1
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
%start -p 200 -u root
|
||
|
uucp_start
|
||
|
|
||
|
%stop -p 200 -u root
|
||
|
uucp_stop
|
||
|
|
||
|
%restart -u root
|
||
|
uucp_stop
|
||
|
uucp_start
|
||
|
|