Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

runsvchdir(8) [debian man page]

runsvchdir(8)						      System Manager's Manual						     runsvchdir(8)

NAME
runsvchdir - change services directory of runsvdir(8) SYNOPSIS
runsvchdir dir DESCRIPTION
dir is a services directory for the use with runsvdir(8). If dir does not start with a slash, it is searched in /etc/runit/runsvdir/. dir must not start with a dot. runsvchdir switches to the directory /etc/runit/runsvdir/, copies current to previous, and replaces current with a symlink pointing to dir. Normally /etc/service is a symlink to current, and runsvdir(8) is running /etc/service/. EXIT CODES
runsvchdir prints an error message and exits 111 on error. runsvchdir exits 0 on success. FILES
/etc/runit/runsvdir/previous /etc/runit/runsvdir/current /etc/runit/runsvdir/current.new SEE ALSO
runsvdir(8), runit(8), runit-init(8), sv(8), runsv(8) http://smarden.org/runit/ AUTHOR
Gerrit Pape <pape@smarden.org> runsvchdir(8)

Check Out this Related Man Page

runsvchdir(8)						      System Manager's Manual						     runsvchdir(8)

NAME
runsvchdir - change services directory of runsvdir(8) SYNOPSIS
runsvchdir dir DESCRIPTION
dir is a services directory for the use with runsvdir(8). If dir does not start with a slash, it is searched in /etc/runit/runsvdir/. dir must not start with a dot. runsvchdir switches to the directory /etc/runit/runsvdir/, copies current to previous, and replaces current with a symlink pointing to dir. Normally /etc/service is a symlink to current, and runsvdir(8) is running /etc/service/. EXIT CODES
runsvchdir prints an error message and exits 111 on error. runsvchdir exits 0 on success. FILES
/etc/runit/runsvdir/previous /etc/runit/runsvdir/current /etc/runit/runsvdir/current.new SEE ALSO
runsvdir(8), runit(8), runit-init(8), sv(8), runsv(8) http://smarden.org/runit/ AUTHOR
Gerrit Pape <pape@smarden.org> runsvchdir(8)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

change login dir

Ok when I log in to my terminal I land in a dir. How can I change the dir that I start from when I login? Thanks for the help, sure it is a no brainer for you guys cd (5 Replies)
Discussion started by: lorcet222
5 Replies

2. UNIX for Dummies Questions & Answers

how to list dir only

Hi I had trouble , i forget how to show the dir only , please state, thanks (2 Replies)
Discussion started by: stephettt
2 Replies

3. UNIX for Dummies Questions & Answers

Path autocompletion in ksh

Say, I want to move into dir library from current dir, on prompt if I type in cd li if it is followed by pressing 'Tab' key then complete dir name appears. Would there anyone know, how we can make into effect this path autocompletion? I am using 'ksh'. (5 Replies)
Discussion started by: videsh77
5 Replies

4. UNIX for Dummies Questions & Answers

Grep Problem

Hi, I want search all files containing some "searchtext" in current dir and sub dir. For this, I used grep "searchtext" */* This will search only in sub dir files and does not give results if file containing search text exists in current directory. and grep "searchtext" * ... (8 Replies)
Discussion started by: avadhani
8 Replies

5. UNIX for Dummies Questions & Answers

Add Date format to a file.

Hi, I need to copy a file from one directory to another and need to add the current date at the end of my file in the new dir. Please provide me the cmd that I can use. I have a file abc.dat in dir SD/Files. I need to copy this file to dir SD/Files/Latest and the file name should have date... (3 Replies)
Discussion started by: sarath_kalari
3 Replies

6. Shell Programming and Scripting

awk question

Hello Peeps, How can I use awk to strip the filename off the end please ? /dir/dir/dir/dir/filename ? Thanks, Dave (34 Replies)
Discussion started by: d__browne
34 Replies

7. Shell Programming and Scripting

Ignore diriectories within a script

Hi there, I have a small issue with a script that I am running. I need it to ignore certain dir when copying over files. Ie the code is pointing towards the dir etest but I need to ignore the dirs INLINE and ENG which is contained within this...could anyone give me a pointer on how to do this? I... (9 Replies)
Discussion started by: lodey
9 Replies

8. UNIX for Advanced & Expert Users

cannot cd or rename the directory "{};"

I'm kind of lost here, I see a dir. "{};" while listing files and dir. (FYI.... I enclosed the dir. {}; in double quotes), not sure how this dir. got created in first place. # ls -lt | more total 279320 -rwxrwx--- 1 root system 105 Jan 10 12:13 test.sh drwxr-xr-x 2 root system ... (3 Replies)
Discussion started by: barkath
3 Replies

9. Shell Programming and Scripting

to write a script to compare the file size in the current directory and previous dir

hi, i am new to this site. i want to write a script to compare the file size of the files in the current dir with the files in the previous directory. the files name will be same, but the filename format will be as xyzddddyymm.txt. the files will arrive with the month end date(i want to... (5 Replies)
Discussion started by: tweety
5 Replies

10. Shell Programming and Scripting

How to create a dir with name "current date".

I need to create a dir in my script with its name as current date in the server. how can i do that please help. (2 Replies)
Discussion started by: abhishek27
2 Replies

11. UNIX and Linux Applications

CPIO Problem, copy to the root dir / instead of current dir

HI all, I got a CPIO archive that contains a unix filesystem that I try to extract, but it extract to the root dir / unstead of current dir, and happily it detects my file are newer otherwise it would have overwrited my system's file! I tried all these commands cpio -i --make-directories <... (2 Replies)
Discussion started by: nekkro-kvlt
2 Replies

12. UNIX for Advanced & Expert Users

Getting real path to directory

Hi friends, Need your help. The question is: 1) We have directory '/SomeDirectory/SubDirectory' 2) And have symlink pointing to it like '/AnotherOneDirectory/symlink' '/AnotherOneDirectory/symlink' -> '/SomeDirectory/SubDirectory' 3) Need to get real path without symlinks knowing only... (7 Replies)
Discussion started by: kandrewo
7 Replies

13. Shell Programming and Scripting

Significance of forward slash(/) while specifying a directory

What is the significance of the forward slash(/) while specifying a directory? cp -av /dir/ /opt/ and cp -av /dir /opt Does effectively the same job it seems? (2 Replies)
Discussion started by: proactiveaditya
2 Replies

14. Shell Programming and Scripting

sed copy paste

Hello, I have this path and file: /dir/dir/dir/dir/dir/dir/dir/dir/dir/THIS_SPOT/fle.txt I want to end up with: /dir/dir/dir/dir/dir/dir/dir/dir/dir/THIS_SPOT/fle.txtTHIS_SPOT Take the dir after the 10th slash, add a tab at the end and paste the dir it copied. Thanks (4 Replies)
Discussion started by: crowman
4 Replies

15. Shell Programming and Scripting

Save all the file of current date in another dir?

Hi i want to copy all the files of current date in another directory. for example, below i want to save all the file of 26 march to copied in debug dir. $ ls -lrt | tail -5 -rwxrwxrwx 1 khare guest 73 Jan 6 12:35 chk -rw-r--r-- 1 khare guest 770 Mar 26 02:21 cc1... (2 Replies)
Discussion started by: scriptor
2 Replies