init.d

/etc/init.d/ script file generating permission denied error

一曲冷凌霜 提交于 2019-12-11 15:51:30
问题 I have a local neo4j-community-3.5.6 directory with a database on an Ubuntu 16.04 virtual machine. I want to start this service at start-up so I created a neo4j script in /etc/init.d and sym-linked it to the directory /etc/rcS.d If the start-up script is like: ./home/my_user/custom_folder/neo4j-community-3.5.6/bin/neo4j start the service starts properly and I can access it from the local network. However, if I modify the default /etc/init.d script released by the neo4j community as follows: #

dpkg remove to stop processes

天涯浪子 提交于 2019-12-08 02:13:51
问题 I am currently running Ubuntu 12.04. I've created a debian package that currently installs successfully and starts three new processes. I have also made these three processes start at runtime by placing the following script inside /etc/init.d: # This example is from http://www.debian-administration.org/article/Making_scripts_run_at_boot_time_with_Debian # Also used http://wiki.debian.org/LSBInitScripts/ ### BEGIN INIT INFO # Provides: bleh # Required-Start: $remote_fs $syslog $network #

Need init.d script for Python application

拜拜、爱过 提交于 2019-12-05 04:00:28
问题 I have a python based application which works like a feed aggregator and needs to be part of init.d script so that I could control the execution with start/stop/restart options. Also I want the init.d script to be setup as a cron job (I have example here). I found one sample here http://homepage.hispeed.ch/py430/python/daemon (PS. I don't want the script to be written in python itself). 回答1: You could consider writing a Upstart task for operating systems which use Upstart. Example: # Start

update-rc.d and init.d dependencies

百般思念 提交于 2019-12-04 21:53:15
问题 So I'm trying to write some init.d scripts satisfying LSB so they run appropriately at startup and shutdown. Unfortunately, I'm having issues with LSB/update-rc.d to satisfy dependencies. # Required-Start: $network $local_fs hadoop-namenode hadoop-datanode zookeeper-server # Required-Stop: $network $local_fs hadoop-namenode hadoop-datanode zookeeper-server # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 however, when I run update-rc.d defaults, it merely generates the defaults involved, with

Docker.io init.d script not working on start container

こ雲淡風輕ζ 提交于 2019-12-04 09:21:08
问题 I've a container with odoo on it on the dir "/opt/odoo/". A init script on "/etc/init.d/odoo-server" #!/bin/bash ### BEGIN INIT INFO # Provides: odoo # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start openerp daemon at boot time # Description: Enable service provided by daemon. # X-Interactive: true ### END INIT INFO ## more info: http://wiki.debian.org/LSBInitScripts PATH=/sbin:/bin:/usr/sbin:/usr

Need init.d script for Python application

梦想与她 提交于 2019-12-03 21:12:59
I have a python based application which works like a feed aggregator and needs to be part of init.d script so that I could control the execution with start/stop/restart options. Also I want the init.d script to be setup as a cron job (I have example here). I found one sample here http://homepage.hispeed.ch/py430/python/daemon (PS. I don't want the script to be written in python itself). You could consider writing a Upstart task for operating systems which use Upstart. Example: # Start zeya # description "Start Zeya music server" start on startup task exec python /home/r00t/code-hacking/serve

update-rc.d and init.d dependencies

 ̄綄美尐妖づ 提交于 2019-12-03 15:10:34
So I'm trying to write some init.d scripts satisfying LSB so they run appropriately at startup and shutdown. Unfortunately, I'm having issues with LSB/update-rc.d to satisfy dependencies. # Required-Start: $network $local_fs hadoop-namenode hadoop-datanode zookeeper-server # Required-Stop: $network $local_fs hadoop-namenode hadoop-datanode zookeeper-server # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 however, when I run update-rc.d defaults, it merely generates the defaults involved, with the exact same start time as the already dependencies, which breaks things horribly. Am I missing

How to start a Node.js app on system boot?

巧了我就是萌 提交于 2019-12-03 12:23:37
问题 I'm working on a Raspberry Pi running Raspbian running a Node.js app and trying to get it to start when the Pi boots. I found a couple of examples but I can't seem to get it working. My current code is: #! /bin/sh # /etc/init.d/MyApp ### BEGIN INIT INFO # Provides: MyApp.js # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Starts MyApp.js # Description: Start / stop MyApp.js at boot / shutdown. ### END

Call to daemon in a /etc/init.d script is blocking, not running in background

旧时模样 提交于 2019-12-03 10:51:47
问题 I have a Perl script that I want to daemonize. Basically this perl script will read a directory every 30 seconds, read the files that it finds and then process the data. To keep it simple here consider the following Perl script (called synpipe_server, there is a symbolic link of this script in /usr/sbin/ ) : #!/usr/bin/perl use strict; use warnings; my $continue = 1; $SIG{'TERM'} = sub { $continue = 0; print "Caught TERM signal\n"; }; $SIG{'INT'} = sub { $continue = 0; print "Caught INT

Docker.io init.d script not working on start container

心不动则不痛 提交于 2019-12-03 03:33:04
I've a container with odoo on it on the dir "/opt/odoo/". A init script on "/etc/init.d/odoo-server" #!/bin/bash ### BEGIN INIT INFO # Provides: odoo # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start openerp daemon at boot time # Description: Enable service provided by daemon. # X-Interactive: true ### END INIT INFO ## more info: http://wiki.debian.org/LSBInitScripts PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin DAEMON=/opt/odoo/openerp-server NAME=odoo DESC=odoo CONFIG=/etc/odoo-server.conf