opt/cups/cups

30 lines
376 B
Plaintext
Raw Normal View History

2006-02-23 15:26:10 +00:00
#!/bin/sh
#
# /etc/rc.d/cups: start/stop/reload CUPS daemon
#
2006-05-14 12:07:48 +00:00
KEY=/etc/ssl/keys/cups.key
CRT=/etc/ssl/certs/cups.crt
2006-02-23 15:26:10 +00:00
case $1 in
start)
2006-05-14 12:07:48 +00:00
if [ ! -s $KEY -o ! -s $CRT ]; then
/usr/bin/mksslcert $KEY $CRT
fi
2006-02-23 15:26:10 +00:00
/usr/sbin/cupsd
;;
stop)
killall -q /usr/sbin/cupsd
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "Usage: $0 [start|stop|restart]"
;;
esac
2006-05-14 12:07:48 +00:00
# End of file