All Questions
Tagged with shell init-script
13 questions
2
votes
1
answer
915
views
What do programs use to read their environment?
I'm on Fedora, where all preinstalled shells apparently support bashisms: bash --posix does, and even sh. Still, when I used this function,
pathprepend () {
if [[ ":$PATH:" != *":$1:...
0
votes
0
answers
79
views
Shell-init errors when starting the system with pivot_root
I am using sysvinit and I can start the system directly by these kernel options:
root=/dev/sda1 rootfstype=ext4 init=/sbin/init
And it works perfectly. But if I add a middle filesystem like with this:...
1
vote
0
answers
301
views
whoami command fails after running /bin/su
I have a system with an init script that launches multiple applications, each under it's right user and group. The init script checks the home directory of each user and looks for the application init ...
1
vote
1
answer
207
views
Process Ignores Signals + Terminal/Shell Concept
I'm using linux kernel 4.1.8 32bit.
My init process (using /etc/inittab and /etc/rd5.d Scripts) run the "Hello" process during boot time:
int main(){
int val;
printf("Hello\n");
scanf(...
0
votes
1
answer
6k
views
Automatic sudo permissions for startup script
I need to run a script upon startup, which I understand needs to be done in the init.d folder. Now this script requires sudo permissions, it prompts the user for the sudo password when being run ...
0
votes
1
answer
626
views
Weird behavior of configuration in OpenRC init script
I'm trying to make a simple OpenRC init script for a service.
What I have so far looks like this:
#!/sbin/openrc-run
CONFIG=${CONFIG:-/etc/pysystemfan.json}
pidfile=${PIDFILE:-/var/run/pysystemfan....
0
votes
1
answer
81
views
Set script to be executed at/after boot, with only write permissions, but no shell access on the target
Suppose you have write access to a Linux system, with root rights, but no interactive shell.
You can only write new files or overwrite existing files. Creation of (sub)directories is possible. It's ...
0
votes
1
answer
1k
views
Do I need set ulimit for system services, such as nginx.service(systemd)/nginx(sysv)?
I know, when we run application in shell for a large website, we'd better set ulimit for our shell,
But most of the service is started by systemd/sysv.
Do I need set the ulimit in the service ...
3
votes
1
answer
161
views
Is it possible to create a Linux environment without a traditional command shell?
i.e.
Using something like IPython, re.pl, or somesuch as a login shell, instead of bash/ksh/etc.
Using initscripts, etc. written in Python or some other scripting language, and making no use of shell ...
3
votes
1
answer
512
views
Grepping a variable
I've written a simple init script to start and stop a Python script as a service. I have to be explicit about the version of Python I'm running, because this is on a CentOS 5 box with Python 2.4 & ...
2
votes
1
answer
1k
views
Why is the restart inittab action asking me for an id?
I am following the NAND firmware update tutorial to try to get my system to run from RAM so I can flash it. I previously had my script running but for some reason unknown to me it is giving me:
INIT: ...
4
votes
2
answers
803
views
Flatten shell script (include sourced scripts) and remove unused functions
I am manually tweaking Debian init scripts in order to optimize the boot time of an embedded device. So far I reduced it by half just with the "low hanging fruits" ie. the smaller scripts that are ...
1
vote
1
answer
936
views
init-scripts in autoyast to autodeploy Suse Linux server
I'm deploying a base SLES11.1 server using autoyast. What I want to achieve is to install some packages on it after the deployment. So I use the init-script in the autoyast control file. Here is the ...