Re: How to add a perl script as a system startup daemon in redhat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Abhilash abhi wrote:
> I have a perlscript. I want to run that script at system startup(as a
> startup daemon) in redhat.
> i have put that script in /etc/init.d and try adding that to chkconfig
> using
> [root@localhost init.d]# chkconfig --add changehttpadress
> service changehttpadress does not support chkconfig


Do you have comments in the script that are similar to
these from atd?  These are required to make chkconfig work.

# chkconfig: 345 95 5
# description: Runs commands scheduled by the at command at the time \
#    specified when at was run, and runs batch commands when the load \
#    average is low enough.
# processname: atd

Note that you also have to create a file in /var/lock/subsystem
if you want the service to stop gracefully at shutdown.  For
example the atd script uses this: touch /var/lock/subsys/atd

I'll be interested to know if these two additions to a perl
script make it start and stop as expected.

c



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux