PDA

View Full Version : REQ: Start/Stop Script for ISPC and other services


domino
22nd November 2005, 00:53
Can someone please show me how to create a run and stop script for ISPConfig on my sandbox? I have it running on one of my computers for testing purposes and I don't use it very often. What is required is to start and stop ISPConfig services and all services that is installed with the how-to. I'm running Ubuntu Breezy.

falko
22nd November 2005, 01:15
There's already an ISPConfig init script: /etc/init.d/ispconfig_server

domino
22nd November 2005, 07:59
:o Excuse me while I go hide in shame. Thank you

till
22nd November 2005, 09:27
There is also an FAQ entry about how to start / restart ISPConfig:

http://www.howtoforge.com/faq/index.php?action=artikel&cat=13&id=34&artlang=en

domino
22nd November 2005, 09:47
Thanks till. As punishment, I won't post another stupid question for another month. So see you next year :)

EDIT: Wait, please tell me how to create a link to the command on the desktop. 1 link for Stop ISPConfig services and 1 for Start ISPConfig services. Also, can you please tell me how I'm able to add other services like apache2 and mySQL, which I think run independent from ISPConfig.

falko
22nd November 2005, 12:56
EDIT: Wait, please tell me how to create a link to the command on the desktop. 1 link for Stop ISPConfig services and 1 for Start ISPConfig services. Also, can you please tell me how I'm able to add other services like apache2 and mySQL, which I think run independent from ISPConfig.
I think you can do it in your desktop's control center. But these scripts have to be run as root!

domino
22nd November 2005, 14:17
You can set "Run as Root" to the shorcut to gain access in user mode. What pkg are you referring to when you say "desktop's contol center"? The only other say I can enable/disable the services is to run sysv-rc-conf. But I would prefer a "1-click does it all thing". Is it possible?

falko
22nd November 2005, 16:18
Must be somewhere under "System" on your Ubuntu desktop. I don't have Ubuntu installed right now...

domino
22nd November 2005, 21:50
There are where I have to go in order to toggle the services :(. I wish there was another way to do this other than having to open 3 application to turn on/off 9 services :(

Boot-Up Manager: Bind, IMAP, CLamAV
Services Setting: MySQL, ProFTPD, Postfix, SSH, Apache2
Terminal: ISPConfig

falko
22nd November 2005, 23:43
Can't you simply right-click on the desktop and create a new shortcut icon and specify a command to run?

domino
23rd November 2005, 16:15
For ISPConfig I can, but for the rest, i'm pretty sure I can so long as I know what I'm doing. Unfortunately... I'll live with it.

falko
23rd November 2005, 19:43
For ISPConfig I can, but for the rest, i'm pretty sure I can so long as I know what I'm doing. Unfortunately... I'll live with it.
Have a look into your /etc/init.d folder to find out the names of the init scripts.