diff options
author | Dave Brolley <brolley@redhat.com> | 2009-12-18 16:22:01 -0500 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-12-18 16:22:01 -0500 |
commit | 961588fd58020a7c21e4a9c0c50bc5a5f26e4790 (patch) | |
tree | 48360ad54e3e236e293ada538ea87cd8d1ed5cd0 /initscript | |
parent | 547a3b44141e7c7b6548d130bb37f18a634a50a2 (diff) | |
download | systemtap-steved-961588fd58020a7c21e4a9c0c50bc5a5f26e4790.tar.gz systemtap-steved-961588fd58020a7c21e4a9c0c50bc5a5f26e4790.tar.xz systemtap-steved-961588fd58020a7c21e4a9c0c50bc5a5f26e4790.zip |
PR 10247 10276 10905: Infrastructure for moving underlying client/server tools to libexec.
Diffstat (limited to 'initscript')
-rw-r--r-- | initscript/stap-server.in | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/initscript/stap-server.in b/initscript/stap-server.in index 07595ec6..66e03ef3 100644 --- a/initscript/stap-server.in +++ b/initscript/stap-server.in @@ -8,26 +8,23 @@ # config: /etc/sysconfig/stap-server # config: /etc/stap-server/conf.d -BINDIR=@bindir@ - -# Source function library. . /etc/rc.d/init.d/functions # Systemtap function library -. $BINDIR/stap-env +. @pkglibexecdir@/stap-env prog=stap-server # Commands -STAP_START_SERVER=$BINDIR/stap-start-server -STAP_STOP_SERVER=$BINDIR/stap-stop-server +STAP_START_SERVER=@pkglibexecdir@/stap-start-server +STAP_STOP_SERVER=@pkglibexecdir@/stap-stop-server UNAME=/bin/uname # Default Global Configuration -CONFIG_FILE=/etc/sysconfig/stap-server -CONFIG_PATH=/etc/stap-server/conf.d -STAT_PATH=/var/run/stap-server -LOG_FILE=/var/log/stap-server.log +CONFIG_FILE=@sysconfdir@/sysconfig/stap-server +CONFIG_PATH=@sysconfdir@/stap-server/conf.d +STAT_PATH=@localstatedir@/run/stap-server +LOG_FILE=@localstatedir@/log/stap-server.log STAP_USER=stap-server # Default option settings @@ -71,7 +68,7 @@ echo_usage () { echo $"nickname. When -n is specified, a currently running server with the" echo $"given nickname will be searched for. If no currently running server" echo $"with the given nickname is found, a server configuration with the" - echo $"given nickname will be searched for in /etc/stap-server/conf.d/*.conf." + echo $"given nickname will be searched for in @sysconfdir@/stap-server/conf.d/*.conf." echo $"If a server configuration for the given nickname is found, the -a, -r," echo $"-I, -R, -B and -u options for that server will be used as if they were" echo $"specified on the command line. If no configuration with the given" @@ -93,7 +90,7 @@ echo_usage () { echo $"command line. If no servers are specified on the command line, the" echo $"behavior is as follows:" echo $"" - echo $" start: Start the servers configured in /etc/stap-server/conf.d/*.conf." + echo $" start: Start the servers configured in @sysconfdir@/stap-server/conf.d/*.conf." echo $" If none are configured, start a server for the kernel release" echo $" and architecture of the host platform." echo $"" |