Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

svdir(1) [debian man page]

SVDIR(1)							   User Commands							  SVDIR(1)

NAME
svdir - Find daemontools service directory SYNOPSIS
svdir [OPTION]... DESCRIPTION
Find daemontools service directory -h, --help Display help and exit -V, --version Display version and exit This utility tries to find the daemontools service directory and print it to stdout. It first checks the current directory of a running svscan process and then it checks some default locations like /var/lib/svscan and /service. It returns 0 if it have found the location and 1 if not. REPORTING BUGS
Report bugs to Klaus Reimer <k@ailis.de> COPYRIGHT
Copyright (C) 2000-2011 by Klaus Reimer This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. svdir 0.6 January 2011 SVDIR(1)

Check Out this Related Man Page

update-service(8)					      System Manager's Manual						 update-service(8)

NAME
update-service - add/remove a service to/from system-wide service supervision SYNOPSIS
update-service --add|--remove service-directory [service-name] update-service --list|--check [service-name] DESCRIPTION
service-directory must be a directory to be used by supervise(8), service-name must not start with a dot, and must not contain a slash. update-service adds or removes the service-directory to the system-wide service supervision provided through daemontools' svscan(8), lists all registered system-wide services, or checks for a specific service-name whether it is registered. When adding a service, and the service-directory resides in /etc/, update-service makes sure that the ./supervise/ subdirectories in the service-directory, and the optional service-directory/log/, are symbolic links pointing into /var/lib/supervise/, unless they already are symbolic links. OPTIONS
--add | -a Add the service directory service-directory to the system-wide service supervision, under the name service-name. If service-name is not specified, update-service will use the basename of service-directory. You can use the svc(8) program to control the newly added service, and the svstat(8) program to query its status, e.g.: # svstat /etc/service/service-name --remove | -r Remove the service directory service-directory, which has been added under the name service-name, from the system-wide service supervision. If service-name is not specified, update-service will use the basename of service-directory. When removing the ser- vice-directory, the exit command is sent to the corresponding supervise(8) process, telling it to take the service down and exit afterwards. You can use the svc(8) and svstat(8) programs to control the removed service, or query its status, e.g.: # svstat service-directory --list | -l If service-name is specified, update-service checks whether service-name is registered as system-wide service, prints a message and exits non-zero if not, or prints the service-name and the directory it points to and exits zero if yes. If service-name is not specified, it prints the names of all system-widely registered services, one per line. --check | -c The same as --list, but update-service doesn't print anything to standard out or standard error. ENVIRONMENT
SVDIR The environment variable $SVDIR overrides the default services directory /etc/service/. FILES
/etc/service/ SEE ALSO
svc(8), svstat(8), svscan(8), svscanboot(8) AUTHOR
Gerrit Pape <pape@smarden.org> update-service(8)
Man Page

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to handle scripts that expect an input

Hi I would like to know how to handle my script that expects an input when calling the script and the user doesn't enter anything, I need to re-direct to my helpfile. Bascically here is my script: #!/bin/bash csvdir="/var/local/dsx/csv/general" csvfile="$csvdir/$csvfile"... (3 Replies)
Discussion started by: ladyAnne
3 Replies

2. UNIX for Dummies Questions & Answers

Searching for specific filenames

Hi I would like to know how to search through a directory and pull out files that has a specific pattern in the filename. For example if the filename has "bsc" in it, then that file must be moved to another directory where I will perform some operations on it. I know grep can be used, but I'm... (17 Replies)
Discussion started by: ladyAnne
17 Replies

3. UNIX Desktop Questions & Answers

Appending file extensions to filenames in bash scripts

Hi Suppose I have a variable called filename and it it contains the name of a file. I then would like to append an extension to that filename. The filename currently has no extensions. How do I do this? Thanks (11 Replies)
Discussion started by: ladyAnne
11 Replies

4. Shell Programming and Scripting

Script to wait until file is updated

Hello, I need to evaluate (under BASH) if the certain file has been updated or not. If the file still wasn't updated, script should wait. The script picks up the time stamp of the file using command OldTimestamp=$(date -r $MyDir/$MyFile), but I don't know how to code a waiting loop with new and... (6 Replies)
Discussion started by: sameucho
6 Replies

5. Shell Programming and Scripting

Passing data from csv to script

Hi I have a bash script as such: cat $csvdir/$csvfile | csvdsx -ePlanned \ -iCell:CELLID \ -cCells%BTS:SITEID^Cell:CELLID \ -sCell:CELLID \ --multi-value-field=$paramname \ -xCELLID,SITEID \ ->$dsxdir/$dsxfile It basically converts a csv file to a dsx file My csv file... (1 Reply)
Discussion started by: ladyAnne
1 Replies

6. UNIX for Advanced & Expert Users

Mistakenly renamed libdl.so: system got corrupted

Hi, I am using Ubuntu 8.04 64-bit (Hardy Heron LTS Desktop edition) OS on a 64-bit intel hardware (x86_64). I have wrongly renamed the /lib64/libdl-2.7.so shared library file and now hardly few commands are working. My Gnome UI display has gone and I could not establish any new connection via... (12 Replies)
Discussion started by: royalibrahim
12 Replies

7. Shell Programming and Scripting

Read from config file and use it in perl program

Hi, I want to configure some values in config file like below work_dir /home/work csv_dir /home/csv sql_dir /home/sqls reportfirst yes and i want to store each value in variable to use it further in my my perl program ?? any thought on this(i am new to perl) ? ... (2 Replies)
Discussion started by: raghavendra.nsn
2 Replies

8. Shell Programming and Scripting

Merging all (48) CSV files from a directory

I have 48 csv files in my directory that all have this form: Storm Speed (mph),43.0410781151 Storm motion direction (degrees),261.580774982 MLCAPE,2450.54098661 MLCIN,-9.85040520279 MLLCL,230 MLLFC,1070.39871 MLEL,207.194689294 MLCT,Not enough data Sbcape,2203.97617778... (3 Replies)
Discussion started by: RissaR
3 Replies

9. Android

Basic Android platform information.

I am thinking of developing an app' for Android mobile devices... Two questions here:- 1) Does anyone _develop_ for the Android _mobile_ platform? If so do you use OSX 10.7.5 or greater as your _development_platform_? 2) I know ********* is gonna say that the Android terminal/shell is... (13 Replies)
Discussion started by: wisecracker
13 Replies