ports/74135: port sysutils/anacron lacks an example anacron.sh startup/shutdown script
solstice.dhiver at laposte.net
solstice.dhiver at laposte.net
Fri Nov 19 22:00:46 UTC 2004
>Number: 74135
>Category: ports
>Synopsis: port sysutils/anacron lacks an example anacron.sh startup/shutdown script
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Nov 19 22:00:45 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: solsTiCe d'Hiver
>Release: FreeBSD 5.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD tethys.example.org 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Tue Nov 16 22:22:22 CET 2004 root at tethys.example.org:/usr/src/sys/i386/compile/MONNOYAU i386
>Description:
When you install anacron's port, there is no example of a
startup/shutdown script (in /usr/local/share/examples/etc/rc.d ?) that you
can copy and put in /usr/local/etc/rc.d and tweak as you want. well, it is
not a big problem to make one but an example is helpful and faster than
creating a new one from nothing.
>How-To-Repeat:
simply install the port of anacron
>Fix:
i provide an example of a startup script of the service anacron.
--- anacron.sh begins here ---
#!/bin/sh
#
# initialization/shutdown script for anacron
case "$1" in
start)
/usr/local/sbin/anacron -s && echo -n " Anacron started "
;;
stop)
:
# or may be
#killall anacron && echo -n " Anacron killed "
;;
*)
echo "unknown option: $1 - should be 'start' or 'stop'" >&2
;;
esac
--- anacron.sh ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list