SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I made some cool rc.d scripts for my game servers, and I was wondering how to get them to show up in pkgtool (Setup -> Services). I just put them in /etc/rc.d and they dont show up there.
In case it matters, their chowned root:games. They work fine, but I was looking to have pkgtool enable (or disable) the servers via their scripts.
if the dog dies it would be your fault (at least in part)
Hi
I think you meant that if you don't solve that problem then you would be so busy finding the solution that you would forget about your dog and so put its life in risk.
Not funny, to be honest. I think something like that could happen to me if I was living alone...
Shame on me. That's why I have had no pets for years.
Anyways, how do you edit this file? I added this to it in what is probably the appriorated place...
Code:
if [ -r etc/rc.d/rc.ut2004ded]; then
if [ -x etc/rc.d/rc.ut2004ded]; then
RC_UT2004DED=on
else
RC_UT2004DED=off
fi
cat << EOF >> $TMP/tmpscript
"rc.ut2004ded" "The UT2004 game server" $RC_UT2004DED"The UT2004 server allows your machine to host multiple Unreal Tournament 2004 games." \\
EOF
fi
ill look it over some more, do I have to run smoe command or something? I can't reboot my machine or Ill lose and uptime contest AND MY DOG WILL BE PROCESSED INTO PIG SLOP!
O.k... That's fine but you missed the for loop at the bottom. Add your script name there and you will have to add a section to either rc.M or rc.local to actually fire the script up. I'm guessing you already did that but one can't be sure. Slackware isn't rocket science.
Anyways, how do you edit this file? I added this to it in what is probably the appriorated place...
Code:
if [ -r etc/rc.d/rc.ut2004ded]; then
if [ -x etc/rc.d/rc.ut2004ded]; then
RC_UT2004DED=on
else
RC_UT2004DED=off
fi
cat << EOF >> $TMP/tmpscript
"rc.ut2004ded" "The UT2004 game server" $RC_UT2004DED"The UT2004 server allows your machine to host multiple Unreal Tournament 2004 games." \\
EOF
fi
ill look it over some more, do I have to run smoe command or something? I can't reboot my machine or Ill lose and uptime contest AND MY DOG WILL BE PROCESSED INTO PIG SLOP!
Your formatting is off there. Try this:
Code:
if [ -r etc/rc.d/rc.ut2004ded ]; then
if [ -x etc/rc.d/rc.ut2004ded ]; then
RC_UT2004DED=on
else
RC_UT2004DED=off
fi
cat << EOF >> $TMP/tmpscript
"rc.ut2004ded" "The UT2004 game server" $RC_UT2004DED "The UT2004 server allows your machine to host multiple Unreal Tournament 2004 games." \\
EOF
fi
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.