TriBaL HardCoRE !

March 12, 2005

Contoh Script rc.d on FreeBSD

Filed under: Security

rc.d example script startup shutdown

#!/bin/sh
case “$1″ in
start)

/usr/local/sbin/some-app

echo “Starting Script”

;;
stop)

killall -15 some-app

echo “Terminating Script”

;;
*)
echo “Usage: `basename $0` {start|stop}” >&2
exit 64
;;
esac
exit 0

Comments »

The URI to TrackBack this entry is: http://mobi.blogsome.com/2005/03/12/contoh-script-rcd-on-freebsd/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>























Get free blog up and running in minutes with Blogsome | Theme designs available here