mirror of
https://github.com/hamonikr/systemback.git
synced 2025-12-23 22:17:46 -05:00
16 lines
331 B
Bash
Executable File
16 lines
331 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
if [ -d /run ]
|
|
then dir=/run
|
|
else dir=/var/run
|
|
fi
|
|
|
|
if [ "$1" = remove ] && [ -e $dir/sbscheduler.lock ] && [ -s $dir/sbscheduler.pid ]
|
|
then
|
|
echo "Stopping Systemback scheduler daemon ..."
|
|
|
|
if kill $(cat $dir/sbscheduler.pid) >/dev/null 2>&1
|
|
then rm $dir/sbscheduler.lock $dir/sbscheduler.pid
|
|
fi
|
|
fi
|
|
#DEBHELPER# |