LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-25-2004, 02:45 AM   #1
mlsbraves
Member
 
Registered: Feb 2004
Location: Gulfport, MS
Distribution: Slackware 10.1, Gentoo
Posts: 90

Rep: Reputation: 15
How do I add start and stop commands to systems startup and shutdown processes?


I installed hpoj but after installing it informed me that I would need to configure ptal-init to start at bootup. Since slack doesnt use SysV-init scripts the install script couldnt do it.

HPOJ Manual
Quote:
If your system uses SysV-style init scripts:

cd into either /etc/init.d or /etc/rc.d/init.d.
Ensure that ptal-init is in this directory. It may be an actual file or a symlink to somewhere else. Also, some package providers may call it something else, such as hpoj or ptal. If you don't find it here, then look for it where you installed hpoj (such as /usr/local/sbin/ptal-init). Use this file in place of "../init.d/ptal-init" below.
Run "ls -ld /etc/rc.d/rc*.d /etc/rc*.d" to look for all of the runlevel init script directories. Some entries may be symlinks to other directories.
For each runlevel init script directory (not symlink) that you find:
cd into that directory.
Look for a symlink with a name of the form "S<nn><module>" or "K<nn><module>", where <nn> is a number indicating the order in which things are [S]tarted or [K]illed, and <module> is the name of your print spooler, probably either lpd or cupsd.
If you find a symlink to [S]tart your print spooler, then create a [S]tart symlink for ptal-init with a start-order number one less than that for your print spooler. For example, if you found S60lpd, then issue a command such as "ln -s ../init.d/ptal-init S59ptal-init".
If you find a symlink to [K]ill your print spooler, then create a [K]ill symlink for ptal-init with a kill-order number one greater than that for your print spooler. For example, if you found K60lpd, then issue a command such as "ln -s ../init.d/ptal-init K61ptal-init".

If your system doesn't use SysV-style init scripts, then consult your distribution's documentation for information on how to add additional start and stop commands to your system's startup and shutdown processes. If all else fails, you might be able to add a line to some sort of "local" init script, such as /etc/rc.d/rc.local, that invokes "ptal-init start", but this will likely not guarantee that "ptal-init start" is run before your print spooler. Also, you'll probably need to specify the full path to ptal-init in this case.
How can I setup so ptal-init process starts?
Thanks
 
Old 11-25-2004, 07:04 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Try this :
http://www.linuxprinting.org/piperma...q3/005723.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VSFTPD Not responding to restart/stop/start commands even in root! phoenix09 Linux - Software 7 09-05-2005 11:28 PM
CLI....start/stop processes Basslord1124 Fedora 6 03-16-2005 07:16 AM
what commands do I use to start and stop my internet connection? babyboss Slackware 2 10-17-2004 01:35 PM
modem lights start/stop commands for fedora c2 vance Linux - Networking 0 05-24-2004 12:11 PM
how to stop processes in linux adhiraj Linux - General 1 02-01-2004 11:51 AM


All times are GMT -5. The time now is 05:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration