|
How to start and stop Qpopper automatically.
1). Create a new file "/etc/rc.d/init.d/qpopper"
with the following content:
#!/bin/sh
# description: Start and Stop QPopper
# chkconfig: 2345 99 00
case "$1"
in
'start')
/usr/local/bin/popper
touch /var/lock/subsys/qpopper
;;
'stop')
killall -9 popper
rm -f /var/lock/subsys/qpopper
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0
2). Make the file executable:
| $> chmod 755 /etc/rc.d/init.d/qpopper |
3). Copy the file to several other init directories:
$> cp /etc/rc.d/init.d/qpopper /etc/rc.d/rc2.d/S99qpopper
$> cp /etc/rc.d/init.d/qpopper /etc/rc.d/rc3.d/S99qpopper
$> cp /etc/rc.d/init.d/qpopper /etc/rc.d/rc5.d/S99qpopper |
You can now start and stop Qpopper with the following commands
$> /etc/rc.d/init.d/qpopper start
$> /etc/rc.d/init.d/qpopper stop |
and Qpopper will start automatically when you boot RH Linux.
Related:
How to install Qpopper on Red Hat Linux
Tripanel tutorials index
Reference:
Eudora's Qpopper
Website
Red Hat Linux
Website
|