servicectl/serviced
Frank Villaro-Dixon 2cbf2196ce
Update serviced
2023-06-07 09:45:11 +02:00

18 lines
397 B
Bash
Executable File

#!/bin/bash
# Control services for system based on Systemd inside chroot and SysVinit outside chroot
# https://github.com/smaknsk/servicectl
#
# Path locate this script
DIR=$(dirname $(readlink -f $0))
# Path contents symlink on systemd units files
SERVICECTL_ENABLED_PATH="$DIR/enabled/"
action="start"
if [[ -n $1 ]]; then
action=$1
fi
servicectl $action $(dir $SERVICECTL_ENABLED_PATH)