diff options
author | Reza Talebi <reza.talebi.73@outlook.com> | 2022-02-26 20:34:02 +0330 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-03-03 15:56:39 +0700 |
commit | 5c8b312d4192093768fc6ddc6052ed9f6e4930e8 (patch) | |
tree | 4e2eb6760584614d93e43e94977e966cf177891d /network/windscribe/rc.windscribe | |
parent | 32a071668038e42d448fd76369cc3236dcc8b963 (diff) |
network/windscribe: Updated for version 2.3.15.
Signed-off-by: Reza Talebi <reza.talebi.73@outlook.com>
Signed-off-by: Pouria Rezaei <Pouria.rz@outlook.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/windscribe/rc.windscribe')
-rw-r--r-- | network/windscribe/rc.windscribe | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/network/windscribe/rc.windscribe b/network/windscribe/rc.windscribe index 8341cd89c134f..a05aee131d16b 100644 --- a/network/windscribe/rc.windscribe +++ b/network/windscribe/rc.windscribe @@ -2,9 +2,9 @@ -PRGNAM=windscribe +PRGNAM=helper PID=/var/run/$PRGNAM.pid -DAEMON=/usr/bin/windscribe +DAEMON=/usr/local/windscribe/helper # @@ -13,12 +13,12 @@ DAEMON=/usr/bin/windscribe windscribe_start() { if [ -s $PID ]; then - echo "$PRGNAM is already running: $(cat $PID)" + echo "Windscribe is already running: $(cat $PID)" exit 1 fi if [ -x $DAEMON ]; then - $DAEMON start + $DAEMON & pidof $DAEMON > $PID fi } @@ -29,10 +29,10 @@ windscribe_start() windscribe_stop() { if [ -s $PID ]; then - $DAEMON stop + kill $(cat $PID) rm -rf $PID else - echo "$PRGNAM is not running." + echo "Windscribe is not running." fi } @@ -52,9 +52,9 @@ windscribe_restart() windscribe_status() { if [ -s $PID ]; then - echo "$PRGNAM is running: $(cat $PID)" + echo "Windscribe is running: $(cat $PID)" else - echo "$PRGNAM is not running." + echo "Windscribe is not running." fi } |