gluon/package/gluon-autoupdater/files/lib/gluon/autoupdater/lib.sh
Jan-Niklas Burfeind 2aa3527fdc treewide: fix indentation in .sh files
to match the editorconfig

awk code in contrib/sign.sh and contrib/sigtest.sh
reformatted as gawk does
2023-01-03 09:02:28 +01:00

17 lines
289 B
Bash

# Library to be sourced by download.d/abort.d scripts
stop() {
if [ -x /etc/init.d/"$1" ]; then
echo "Stopping $1..."
/etc/init.d/"$1" stop
fi
}
start_enabled() {
if [ -x /etc/init.d/"$1" ] && /etc/init.d/"$1" enabled; then
echo "Starting $1..."
/etc/init.d/"$1" start
fi
}