services-garbaye/podman-peerjs/30_start.sh

16 lines
340 B
Bash
Raw Normal View History

2021-05-04 20:14:08 +00:00
#!/usr/bin/env bash
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
source ${ABSDIR}/../functions.sh
source ${ABSDIR}/vars.sh
ensure_pwd_is_scriptdir
ensure_not_root
if systemctl is-active --quiet service ${service_name}; then
echo Service ${service_name} is already running.
exit 1
fi
systemctl --user start ${service_name}.service