-1
votes
5answers
85 views

Standard or best way to keep alive process started by init.d

I'm looking for a standard way or best practice to keep a daemon started by an init.d shell script alive. Or even better, is there a way to keep it alive directly from /etc/init.d? Specifically, I ...
0
votes
1answer
43 views

Bacula daemon fails to stop or restart

Foreword: I have already resolved this problem and am asking this question to share the solution I've found. Please bear in mind that the problem described here may (or may not) be more generic and ...
0
votes
1answer
74 views

Can't run node.js script on server reboot

I need to listen events on port 3240 and I'm using node.js for that purpose. I need to execute my script with forever tool. I also need to run forever on server reboot. When I run forever glh.js ...
0
votes
1answer
100 views

On a Debian 7.5 rc.local won't be run at boot

I am struggling to figure out why rc.local won't be executed at boot time. The file itself is executable, it is called from /etc/rc2.d Also the file when from command line won't return any errors. Any ...
1
vote
1answer
506 views

startpar process left hanging when starting processes from rc.local or init.d

I have a peculiar issue when starting ongoing(service-like) processes from either full blown init.d script (SysV style) or a simple one-line call from rc.local file like so: su someuser -c ...
2
votes
4answers
234 views

Starting a script as another user

I've created a script in /etc/init.d/ which has to run several other scripts from other (non-root privileged) users from their home directories, as if they started them. I launch these scripts ...
0
votes
0answers
88 views

Supplying password to openconnect started via start-stop-daemon

I am attempting to start openconnect via a Debian init script that makes use of start-stop-daemon: DAEMON=/usr/sbin/openconnect DAEMON_ARGS="<endpoint> --script /etc/vpnc/vpnc-script --user ...
0
votes
1answer
164 views

Run chroot's /etc/init.d on system startup?

So I have this dedicated server that is running Debian. I have an intense business need (client's requirement) that I also install Gentoo as a Chroot. I have successfully done so, but now, I am ...
0
votes
1answer
38 views

Init script is not printing any output

I am trying to run Supervisor init script downloaded from here: https://raw.github.com/Supervisor/initscripts/master/debian-norrgard Reading the source, it should print out some output into stdout, ...
1
vote
1answer
760 views

Insserv rejected the script header

I was trying to make an init script for my debian install for supervisor. insserv: Service \$remote_fs has to be enabled to start service supervisor insserv: Service ...
1
vote
0answers
201 views

Lighttpd init script doesn't work on Debian Wheezy

[EDIT] I have found why it did not work, I just had to add the directive server.pid-file = "/var/run/lighttpd.pid" to the lighttpd.conf file. I can't figure out why the lighttpd ...
1
vote
1answer
217 views

Strange behaviour starting process with init script

I'm seeing some strange behaviour when starting a process with an init script. Most likely I am doing something stupid, but perhaps someone could let me know what might cause this behaviour: ...
0
votes
2answers
327 views

Start script.py after reboot as user xy in Debian Squeeze

How can i start a python script.py after a reboot as user xy in Debian Squeeze automatically?
0
votes
0answers
399 views

Why can't I start supervisor with init.d?

I followed this guide to install supervisor on Debian 6.06. EDIT: I can now get supervisor to stop, but cannot get it to start when I'm not using sudo. /etc/init.d/supervisord -> #! /bin/bash -e ...
3
votes
2answers
1k views

How do I run a Debian init.d script manually, not at boot?

How do I stop an init.d server from running on boot, but still allow running it manually?
1
vote
2answers
1k views

start-stop-daemon saves wrong PID

$ ps aux | grep svn root **4458** ... /usr/bin/svnserve -d -r /var/svn manuel 4466 ... grep --color=auto svn $ sudo kill **4458** $ sudo rm /var/run/svnserve.pid $ sudo start-stop-daemon ...
1
vote
1answer
73 views

Debian 3.1 (Sarge) init.d boot order

I am using a TS-7800 single board computer from Technologic Systems that ships with Debian 3.1 (Sarge). I have updated it to Squeeze, but due to various driver issues I have been forced to roll back ...
1
vote
1answer
535 views

elasticsearch @ debian6 started by /etc/init.d max_file_descriptors

I have installed elasticsearch @ debian6 by this tutorial. I have set up my system max open files directives so i have these values: # su # cat /proc/sys/fs/file-max 70000 # ulimit -Hn 64000 # ...
1
vote
1answer
179 views

Backup broken PostgreSQL 8.4 without pg_dump

So. I have a problem. PostgreSQL 8.4 won't start or restart without any output given. But it worked for 3 monthes until hosting provider doesn't rebooted server. Now it is completly broken. It wan't ...
2
votes
1answer
3k views

How to restart postgresql 8.4 on Debian Squeeze when there are no clusters defined?

How to restart postgresql 8.4 on Debian Squeeze? /etc/init.d/postgresql stop/start/restart does nothing (no output given).
1
vote
2answers
893 views

init.d script not working?

I copied an init script from here quite some time ago to automatically start my tightvncserver at boot. It worked perfectly at the time. Since then, I have reformatted my computer, and now my script ...
0
votes
0answers
1k views

lighttpd startup script says /etc/rc.status is missing

I am trying to install the lighttpd startup script. I followed these steps, but when I start it I get root@debian:~# /etc/init.d/lighttpd start .: 53: Can't open /etc/rc.status Seems rc.status does ...
1
vote
2answers
1k views

Reorder the way in which scripts are run at startup

I just moved to debian squeeze and need to change the startup sequence of some scripts. I used to do this with update-rc.d service defaulta xx xx but now with the LSB way of doing things the ...
4
votes
2answers
1k views

Debian init script from scratch

I am trying to write an init script for the SCST iSCSI target software for Debian / Ubuntu. The current one in the download does not work and seems to be outfitted to work on SuSE and others. This ...
7
votes
5answers
6k views

How can I automatically restart a process after it terminates?

I've got a golang program that I want to restart after it terminates on a Debian Squeeze box. The thing is serving HTTP behind an Apache 2 mod_proxy setup. I don't expect the process to fail, but ...
2
votes
2answers
3k views

RH/CentOS service & chkconfig equivalents in Ubuntu/Debian

In RedHat/CentOS distros, you start and stop services with /sbin/service: /sbin/service httpd reload You set whether they should run on startup with /sbin/chkconfig: /sbin/chkconfig --levels 2345 ...
1
vote
1answer
445 views

Question regarding Linux LSB init script directives

I'm making some init scripts to start some system services that require other services to have started in order to start successfully. For instance, one service requires that xenstored be running ...
3
votes
1answer
228 views

Problem with startup script

I am trying to get Chandler running on a debian box on startup under user 'chandler', and have tried the following script, locating it in init.d: #! /bin/sh # # /etc/init.d/chandler # RETVAL=$? ...
0
votes
1answer
367 views

Debian package with init.d without autostart

I'm trying to create a package which contains the init.d file, but doesn't try to start the daemon right after the installation. Currently, I'm using scripts created from the dh_make template. Right ...
2
votes
3answers
8k views

How can I adapt this debian init.d script to work with CentOS 5?

I'm trying to get an lsyncd daemon running. I installed the lsyncd RPM from epel, but it doesn't seem to come with an init.d script. In the lsyncd repository, there's this script that works with ...