View previous topic :: View next topic |
Author |
Message |
Messiah Tux's lil' helper

Joined: 30 Apr 2002 Posts: 139
|
Posted: Tue Jul 02, 2002 12:14 pm Post subject: rc script to nicely start n stop webmin |
|
|
Just a little script to nicely start n stop n restart webmin:
Code: |
#!/sbin/runscript
opts="start stop restart"
depend() {
need net
}
start() {
ebegin "Starting webmin"
start-stop-daemon --start --quiet --exec /etc/webmin/start
eend $?
}
stop() {
ebegin "Stopping webmin"
start-stop-daemon --stop --quiet --pidfile /var/webmin/miniserv.pid
eend $?
}
|
Off-course..you need to install webmin first, and it suggests that you install in the default dir (/etc/webmin)
put this script (webmin) in /etc/init.d/ and call it webmin and chmod it to 755. Then you can do rc-update add webmin default to add webmin to the default runlevel. |
|
Back to top |
|
 |
Bart B n00b

Joined: 01 Jul 2002 Posts: 20 Location: Netherlands
|
Posted: Thu Jul 04, 2002 2:03 pm Post subject: |
|
|
Thanx... I had made one myself... but that one wasn't as good (n00b on that part ) |
|
Back to top |
|
 |
Messiah Tux's lil' helper

Joined: 30 Apr 2002 Posts: 139
|
Posted: Thu Jul 04, 2002 9:41 pm Post subject: |
|
|
actually this is my first rc script for Gentoo, and I did not read any docs. I just looked carefully at other rc scripts and copied most of it  |
|
Back to top |
|
 |
|