Questions tagged [init-script]
The init-script tag has no usage guidance.
13
questions
1
vote
1
answer
399
views
Stop script in init.d is not called
I am using Centos distro. I have a stop script present in etc folder appended with K** prefix
[linux_machine ~]$ ll /etc/rc0.d/
total 0
lrwxrwxrwx 1 root root 31 Apr 5 00:59 K01kill-agents -> /etc/...
0
votes
1
answer
1k
views
How to get "su" to work in init scripts in Red Hat 8 with SELinux?
In an init script I'm trying to run a command:
su - user -c "/home/user/bin/command”
but SELinux prevents this:
systemd[1]: Starting LSB: Start the my_script at boot...
su[5941]: pam_unix(su-l:...
0
votes
1
answer
5k
views
systemd service failed to start with errror : "main process exited, code=exited, status=3/NOTIMPLEMENTED"
I am getting below error when i start a systemd service
[localhost.localdomain]-> systemctl status rcc_rccproxy.service
* rcc_rccproxy.service - starts RCC Proxy process
Loaded: loaded (/etc/...
19
votes
2
answers
97k
views
Systemd error : Executable path is not absolute
I have the following below code of systemd.
[Unit]
Description=start RCC logger server process
Requires=rcc-drbd.service rcc_check_locked_scr.service s96rcc.service
After=rcc-drbd.service ...
0
votes
1
answer
36
views
Does systemd honour KILL order from chkconfig
Title of the question is just what I needed to ask. I don't see it actually following that. Is there a way, in which I can make systemd follow the KILL order.
From what I see, it just reverses the ...
1
vote
0
answers
120
views
How to create additional start up script for one service
I installed the package 'gearman-job-server' in Ubuntu server. it creates start up script by default as /etc/init/gearman-job-server.conf. But I want to add more command to same service. So created my ...
1
vote
1
answer
2k
views
Tell if a process is under systemd, init.d or Upstart control
Is it possible to reliable tell for a given Linux process if it was launched or is still supervised by an init.d script, Upstart or systemd ?
3
votes
1
answer
2k
views
Upstart: chdir stanza VS cd command
In Upstart script I can use chdir stanza to set the working directory. Also I can just execute a normal cd command inside my script section.
What is the difference between this two approaches? When ...
1
vote
2
answers
14k
views
How can I create a /etc/init.d/ script easily?
I usually just copy some existing script like /etc/init.d/ssh, remove extra things and edit remaining things. This is not very convenient.
Is there a simple tool to create good Debian initscripts?
...
2
votes
1
answer
235
views
s3cmd fails to run from an init-script
I created an init-script that should push some log files using s3cmd to an Amazon S3 bucket when the system is going down. s3cmd is installed and s3cmd --configure was run as user root and the ...
0
votes
0
answers
33
views
LSB Init script not executed [duplicate]
I've created an LSB compatible init script which I intend to use to push some log files to an Amazon S3 bucket when the system is going down but it doesn't get executed.
Here is the script contents ...
3
votes
3
answers
2k
views
Why would a shutdown script NOT run?
I have installed a shutdown script on an Ubuntu system which doesn't get executed. It is an Amazon EC2 instance. I'm not sure it has to do with this fact just wanted to point it out.
The script ...
6
votes
2
answers
11k
views
Bash script to wait for Virtualbox VM shutdown?
Virtualbox has the ability to issue a command to a running vm:
vboxmanage controlvm NameOfRunningVM acpipowerbutton
However this command returns immediately which results in non-graceful shutdown ...