Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hello all. i've running the jabber server, wildfire on a suse linux enterprise server 9. i would like for this service to start on boot if the system is restarted.
is there a way to add this software into the yast runlevel editor so that i can set it to start at system load?
it's currently not a "service" like apache2 or mysql, it's run path is currently '/opt/wildfire/bin/wildfire <start/stop/restart>'
what run level would i be looking at? is runlevel 3 the most common for this sort of application? i see apache2 and mysqld are both set at runlevel3.
i think i might have solved my own problem here with the help of a colleague.
i created a script called S33wildfire in /etc/init.d/rc3.d. this script runs...
Code:
/opt/wildfire/bin/wildfire start
then i created a script called K33wildfire in /etc/init.d/rc3.d. this script runs...
Code:
/opt/wildfire/bin/wildfire stop
now, because the init runs as root, this should allow the wildfire service to be stopped and started when the system hits and leaves runlevel 3. with the mysql database needed being stopped and started in runlevel 2.
with the above wildfire script in /etc/init.d/ i can run './wildfire start' and './wildfire stop' just fine, as if i was running the '/opt/wildfire/bin/wildfire start/stop' commands.
whenever i create links in the rc3.d directory using 'ln ./wildfire ./rc3.d/S33wildfire' and try to run them with or without stop and start, i get...
Code:
imsrv:/etc/init.d/rc3.d # ./S33wildfire stop
./K33wildfire: line 1: e: command not found
./K33wildfire: line 2: syntax error near unexpected token `)'
./K33wildfire: line 2: `start)'
and
Code:
imsrv:/etc/init.d/rc3.d # ./S33wildfire
./S33wildfire: line 1: e: command not found
./S33wildfire: line 2: syntax error near unexpected token `)'
./S33wildfire: line 2: `start)'
it was suggested i retype the wildfire script by hand because i had copied it from my windows box to vi on putty. it picked up some hidden characters. this is the script i went with, which worked with '/etc/init.d/rc3.d/S33wildfire'.
hahahaha... ok. with the '/opt/wildfire/bin/wildfire' lines in the script, i have to include the "stop" and "start" variable at the end, so the box knows WTF it's doing.
now, i got init 2 to bring the server down, and when i goto init 3, it comes back up.
now, to get the system reboot to start and stop the wildfire "service"...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.