The first line takes the positional parameter 0 (thats the name the script is invoked with) and strips from the left all characters up to and including the last slash. So it simply does what basename $0 would do.
The second line takes $base and strips from the left all characters up to and including the first character S or K and then two digits.
So, if the script is called as /etc/rc3.d/S79do_something, then base would be set to S79do_something and link would be set to do_something.
I am writing one start up script on SLES10 and am including the header
This backserver service along with clientserver service should start after system reboot.
But everytime I reboot the system backserver is not starting since clientserver has not yet started.
Since the links generated in/etc/init.d/rc5.d as
S01backserver
S01clientserver
and they are trying to get started in alphabetical order.
I want a way by which I can change the SXX values of the links.
Last edited by pludi; 03-03-2010 at 04:13 AM..
Reason: code tags, please...
Hi,
I just started working on a script. After my research, i found a command which can help me:
AIM: To build a script which starts the services (Services 1) on server 1 automatically whenever its down. And it has a dependency on other service (Service 2) on Server 2.
So my script has to... (4 Replies)
I had a doubt if any services need to be restarted if port no in /etc/services in an RHEL setup is changed. For eg, the port no of 443 for SSL may need to be changed.
I hope my query is clear whether any services need to be restarted if port no in /etc/services is changed.
Please revert with... (10 Replies)
I have fasta files with multiple sequences in each. I need to change the sequence name headers from:
>accD:_59176-60699
ATGGAAAAGTGGAGGATTTATTCGTTTCAGAAGGAGTTCGAACGCA
>atpA_(reverse_strand):_showing_revcomp_of_10525-12048
ATGGTAACCATTCAAGCCGACGAAATTAGTAATCTTATCCGGGAAC... (2 Replies)
Hi all,
I have a file like this
ID 3BP5L_HUMAN Reviewed; 393 AA.
AC Q7L8J4; Q96FI5; Q9BQH8; Q9C0E3;
DT 05-FEB-2008, integrated into UniProtKB/Swiss-Prot.
DT 05-JUL-2004, sequence version 1.
DT 05-SEP-2012, entry version 71.
FT COILED 59 140 ... (1 Reply)
Hi
I have an alignment file (.fasta) with ~80 sequences. They look like this-
>JV101.contig00066(+):25302-42404|sequence_index=0|block_index=4|species=JV101|JV101_4_0
GAGGTTAATTATCGATAACGTTTAATTAAAGTGTTTAGGTGTCATAATTT
TAAATGACGATTTCTCATTACCATACACCTAAATTATCATCAATCTGAAT... (2 Replies)
Hi,
I'm the administrator of a server with SLES10 and when I type "ls -l" I'm getting a machine name where I should be getting the username, for example:
server:~# ls -l
drwxrwx---+ 3 user-1152$ group1 4096 2009-11-25 12:56 folder
drwxrwx---+ 3 user-1113$ group2 4096 2010-03-10 15:34... (4 Replies)
Hi All,
I want to change the start-up sequence of services on SLES10/11.
I have my own start-up scripts for some services and I want them to start in a particular order(not in alphabetical order)
Can anyone help me on this issue? (4 Replies)
Hi,
I use red hat linux kernel 2.6
I want to add the application shutdown in shutdown sequence .
I add the K script in /etc/rc.d/ all sub directory for all
running level .
But the auto shutdown application is not appear when
I type "shutdown -r now" ..
There is no indication the application... (5 Replies)
I installed some software (zenworks linux management) and it apparently set up a cronjob for a postgresql database command. The job runs every 4 hours and fails everytime sending root mail... the problem I have is I cant find this job anywhere. ive looked in all the usual cronjob places but... (1 Reply)
Hi all,
I have solaris and xp installed...
Usually solaris occupies the first boot slot.
So i wanted to know if it is possible to change the boot sequence to xp first and then solaris? (5 Replies)