Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rc script to nicely start n stop webmin
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Messiah
Tux's lil' helper
Tux's lil' helper


Joined: 30 Apr 2002
Posts: 139

PostPosted: Tue Jul 02, 2002 12:14 pm    Post subject: rc script to nicely start n stop webmin Reply with quote

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
View user's profile Send private message
Bart B
n00b
n00b


Joined: 01 Jul 2002
Posts: 20
Location: Netherlands

PostPosted: Thu Jul 04, 2002 2:03 pm    Post subject: Reply with quote

Thanx... I had made one myself... but that one wasn't as good (n00b on that part )
Back to top
View user's profile Send private message
Messiah
Tux's lil' helper
Tux's lil' helper


Joined: 30 Apr 2002
Posts: 139

PostPosted: Thu Jul 04, 2002 9:41 pm    Post subject: Reply with quote

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 :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum