diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-03 10:28:17 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-03 10:28:17 +0000 |
commit | d99093fb4bb5652015c06274d64083daa2439e4f (patch) | |
tree | cf61513204d97974179580065e85df5c8009087c /gui-libs/display-manager-init/files/startDM-r1 | |
parent | 463397cf1e064185110fe57c568d73f99a06f5d1 (diff) |
gentoo resync : 03.03.2021
Diffstat (limited to 'gui-libs/display-manager-init/files/startDM-r1')
-rw-r--r-- | gui-libs/display-manager-init/files/startDM-r1 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gui-libs/display-manager-init/files/startDM-r1 b/gui-libs/display-manager-init/files/startDM-r1 new file mode 100644 index 000000000000..b23344bbdcc7 --- /dev/null +++ b/gui-libs/display-manager-init/files/startDM-r1 @@ -0,0 +1,29 @@ +#!/bin/sh +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License, v2 + +# We need to source /etc/profile.env for stuff like $LANG to work +# bug #10190. +. /etc/profile.env + +# need eerror +. /lib/gentoo/functions.sh + +# Bail out early if on a non-OpenRC system: +if [ ! -d /run/openrc ]; then + eerror "$0 should only be used on OpenRC systems" +fi + +. /lib/rc/sh/functions.sh + +export RC_SVCNAME=display-manager +EXEC="$(get_options service)" +NAME="$(get_options name)" +PIDFILE="$(get_options pidfile)" +START_STOP_ARGS="$(get_options start_stop_args)" + +start-stop-daemon --start --exec "${EXEC}" \ +${NAME:+--name} ${NAME} ${PIDFILE:+--pidfile} ${PIDFILE} ${START_STOP_ARGS} || \ +eerror "ERROR: could not start the Display Manager" + +# vim:ts=4 |