diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-12 08:46:53 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-13 07:22:55 +0700 |
commit | 84aa7ac315d82320dbde8c2416fa368a27167c7e (patch) | |
tree | 617df489a70354bb3b77d0b6ca8c53b1c7ee216e /network/users-agent/rc.users-agent | |
parent | f36332d8525ce8170a327c045b40185c909c1cdc (diff) |
network/users-agent: Removed (Dead project).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/users-agent/rc.users-agent')
-rw-r--r-- | network/users-agent/rc.users-agent | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/network/users-agent/rc.users-agent b/network/users-agent/rc.users-agent deleted file mode 100644 index 304eca03dcc79..0000000000000 --- a/network/users-agent/rc.users-agent +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -users_agent_start() { - if [ ! -e /var/run/users-agent/jud.pid ]; then - su - %JUDUSR% -c "/usr/bin/users-agent -c /etc/users-agent/config.xml &" - su - %JUDUSR% -c "ps ux" | awk '/users-agent/ && !/awk/ {print $2}' > /var/run/users-agent/jud.pid - fi -} - -users_agent_stop() { - kill `cat /var/run/users-agent/jud.pid 2> /dev/null` 2> /dev/null - rm -rf /var/run/users-agent/jud.pid 2> /dev/null -} - -case $1 in -'start') - users_agent_start - ;; -'stop') - users_agent_stop - ;; -'restart') - users_agent_stop - sleep 2 - users_agent_start - ;; -*) - echo "usage: `basename $0` {start|stop|restart}" -esac |