I am currently working on a project which needs to be added to inittab so that the program loads during startup.
The program that I am trying to start is a c# mono application. I have created a start script and if the start script is run manually the program launches fine. However, when I put it into inittab the program doesn't launch.
I am using CentOS 6.3, I failed to add a script in inittab to let it start automatically.
myscriptid:2345:respawn:myscript_path
In the script, I have a su myusername -c command, if I run it directly, it prompts me to enter the password, then the script can run. So my question is if I add it to inittab, will it be called successfully?
I am working on a project which is a mono EmailServer. I have tried adding a service to the systemd so that it starts up automatically during boot but I am having a problem.
I would like to create a user who can only do one thing: via ssh specify a script ( and commandline arguments to the script ) that resides in one particular folder
( for the purposes of this question let us call it /local/remote_only_scripts/foo ) and have that script execute and return it's output.
To be clear some examples of things I do not want the user to be able to do:
Locally log in to t
I would like to create a user who can only do one thing: via ssh specify a script ( and commandline arguments to the script ) that resides in one particular folder
( for the purposes of this question let us call it /local/remote_only_scripts/foo ) and have that script execute and return it's output.
To be clear some examples of things I do not want the user to be able to do:
Locally log in to t
I have a script that runs on startup, but it wont launch a application in chroot.
#!/bin/sh
/usr/sbin/chroot /root/chrootdir/ /bin/sh -c "lighttpd -f /etc/lighttpd.conf -m /lib"
echo "script activated" >> /log/www.log
the log file is written/appended on startup, but the lighttpd server is not starting.
Running the script when the box is running works fine and launches lighttpd.
I use an Autologin Script to automatically login to my ISP Account at System Start.
In 12.04 I had this Script placed in /etc/network/if-up.d and used chmod to run it at system start.
In the old days I just modified /etc/inittab. Now, with systemd, it seems to start tty[1-6] automatically, how should I disable tty[4-6]?
Looks like there's only one systemd service file, and it use a %I to discern different tty sessions. I hope I don't need to remove that service, and create each getty@ttyX.service manually.
I am new to Linux & looking forward to start application (which toggles a led every 10 sec).
I have written the application program & it is working fine but now I want to start it automatically on boot.
The documentation here says to copy the startup script to the /etc/init.d directory and make a symbolic link to the copied script in the rc.d directory.
What should be the extension and n