diff options
author | Arn0 <yth@ythogtha.org> | 2023-07-04 14:18:00 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-06 11:23:25 +0700 |
commit | b97a60325dee42f36b28db23b64cc18aa028b95d (patch) | |
tree | 666e3e773f94ad2edeec9132810e75390f821997 /system/salt/rc.salt-master.new | |
parent | 243bcf335e930a9627c510e7460fc465af072036 (diff) |
system/salt: Removed: obsolete, outdated, unmaintained, not working, or not needed anymore.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/salt/rc.salt-master.new')
-rw-r--r-- | system/salt/rc.salt-master.new | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/system/salt/rc.salt-master.new b/system/salt/rc.salt-master.new deleted file mode 100644 index d4c851f5a5a04..0000000000000 --- a/system/salt/rc.salt-master.new +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -# Start/stop/restart salt master - -PIDFILE=/var/run/salt-master.pid -LOGFILE=/var/log/salt/master -# LOGLEVEL: One of: all, garbage, trace, debug, info, warning, error, quiet -LOGLEVEL=warning - -# Start salt-master: -salt_master_start() { - if [ -x /usr/bin/salt-master ]; then - echo "Starting salt-master daemon: /usr/bin/salt-master" - /usr/bin/salt-master -d \ - --pid-file=$PIDFILE \ - --log-file=$LOGFILE \ - --log-file-level=$LOGLEVEL - fi -} - -# Stop salt-master: -salt_master_stop() { - if [ -s $PIDFILE ] ; then - kill $(cat $PIDFILE) - else - killall salt-master - fi - rm -f $PIDFILE -} - -# Restart salt-master: -salt_master_restart() { - salt_master_stop - sleep 1 - salt_master_start -} - -case "$1" in -'start') - salt_master_start - ;; -'stop') - salt_master_stop - ;; -'restart') - salt_master_restart - ;; -*) - echo "usage $0 start|stop|restart" -esac |