I would not edit /etc/rc directly because your updates will eventualy get overwritten by an upgrade. Create a rc script the proper way. It will be called by the /etc/rc script. Another alternative is to add it to /etc/inittab.
Run level script execution
Run level scripts allow users to start and stop selected applications while changing the run level.
Put run level scripts in the subdirectory of /etc/rc.d that is specific to the run level:
The /etc/rc.d/rc will run the scripts it finds in the specified directory when the run level changes - first running the stop application scripts then running the start application scripts.
Note: Scripts beginning with K are stop scripts, while scripts beginning with S are start scripts.
Hi all,
i have a script in /etc/init.d directory.
-rwxr-xr-x 1 root root 26 Mar 28 16:00 myscript
I need it to run when my linux reboots/startup. However is it not being executed. Do i need to put in in the rc.local directory? (1 Reply)
Hi
I have a script that execute every X minute for checking new files in a folder and converting to pdf.
Is there any way to start this script automatically on linux startup?. I use sleep function in script with infinite loop.
while
do
killall -u `whoami` -q soffice
soffice... (0 Replies)
I am using AIX 5.3 in P6 machine.
I have a script "test.sh", when i run it manually it runs properly.
I want to run the script automatically when system starts.
I kept the script in /etc/rc.d/init.d and also in /etc/rc.d/rc2.d but it is not working.
Do i have to write it in inittab instead of... (1 Reply)
Hi guys ,
I Need to run a specific command (pinging a particular machine).
Which need to run every time i reboot the server till the time it shut down.
What is the preferred way of doing this.
Will it impact my system performance.
My Operating system is as below.
# lsb_release -a... (3 Replies)
hi,
i am using rhel 5, and i wanna run a script as soon as the operating system open. How can i do this ? ( i was reading rc.d files but i could not understand exactly what are the run levels and where should i put the my shell script.
my script will be :
#!/bin/ksh
iptables -I INPUT... (1 Reply)
Hi
I have a script myscript.sh that needs to be run whenever the server boots. The script is actually logging Syslog-ng messages to sql server. I need to lauch it at startup
I have copied the script in etc/init.d
i have also added the link
ln -s /etc/init.d/syslog-ng-mssql-pipe.sh... (5 Replies)
We have a Windows Service written in C# ported over to linux using Mono Develop... The code is working 100% when we run a script file which runs the exe... but we want the application to run at startup.... The application gathers info of the computer eg. Hard Disk Space etc... And compress it into... (1 Reply)
Environment
Solaris 9
I have configured the Solaris9 as NTP client in which Solaris9 is syncing the time with a windows2008 R2 Server which is runing fine. Now I want that the xntpd service should start at startup. I did this via a script. Kindly correct if I did any thing wrong:
1.)Made... (9 Replies)
I copied the script from an AskUbuntu post -
#!/bin/bash
### BEGIN INIT INFO
# Provides: tomcat7
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO
... (14 Replies)
Discussion started by: Hijanoqu
14 Replies
LEARN ABOUT DEBIAN
dist::zilla::plugin::run
Dist::Zilla::Plugin::Run(3pm) User Contributed Perl Documentation Dist::Zilla::Plugin::Run(3pm)NAME
Dist::Zilla::Plugin::Run - Run external commands at specific phases of Dist::Zilla
VERSION
version 0.013
SYNOPSIS
[Run::BeforeRelease]
run = script/myapp_before1.pl %s
run = script/myapp_before2.pl %n %v
[Run::Release]
run = script/myapp_deploy1.pl %s
run = deployer.pl --dir %d --tgz %a --name %n --version %v
[Run::AfterRelease]
run = script/myapp_after.pl %s %v
; %p can be used as the path separator if you have contributors on a different OS
run = script%pmyapp_after.pl %s %v
DESCRIPTION
Run arbitrary commands at various Dist::Zilla phases.
CONVERSIONS
The following conversions/format specifiers are defined for passing as arguments to the specified commands (though not all values are
available at all phases).
o %a the archive of the release (available to all *Release phases)
o %d the directory in which the dist was built (not in "BeforeBuild")
o %n the dist name
o %p path separator ('/' on Unix, '\' on Win32... useful for cross-platform dist.ini files)
o %v the dist version
o %x full path to the current perl interpreter (like $^X but from Config)
Additionally %s is retained for backward compatibility. Each occurrence is replaced by a different value (like the regular "sprintf"
function). Individual plugins define their own values for the positional replacement of %s.
AUTHOR
Torsten Raudssus <torsten@raudssus.de> <http://www.raudssus.de/>
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Raudssus Social Software <http://www.raudssus.de/>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.12.4 2011-11-09 Dist::Zilla::Plugin::Run(3pm)