LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   adding a program as a service (https://www.linuxquestions.org/questions/linux-software-2/adding-a-program-as-a-service-134655/)

neverender 01-14-2004 04:42 AM

adding a program as a service
 
i just put imapd and pop3 on my computer, i put them in the /usr/sbin directory.

now i want to add them as a service, how do i do that? i tried these -

% chkconfig --add imapd
error reading information on service imapd: No such file or directory
% chkconfig --add /usr/sbin/imapd
error reading information on service /usr/sbin/imapd: No such file or directory

i just want to add them as a service so they autmatically start when i restart, just like httpd and sshd do.

i'm sure its simple, i just cant figuere it out.

Crashed_Again 01-14-2004 05:05 AM

What are you using RedHat? You need a startup script in /etc/init.d/ for imapd and pop3. Then it should be:

chkconfig imapd on

neverender 01-14-2004 05:29 AM

i posted under the mandrake forums, that probly was a better place to post.

mods.. feel free to delete this thread.


All times are GMT -5. The time now is 12:33 AM.