diff options
author | William Pitcock <nenolod@dereferenced.org> | 2017-07-02 00:31:41 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-07-02 00:32:26 +0000 |
commit | b7fdc39c62eab176baf3cc4432d786ef80cb37ea (patch) | |
tree | d7d7f071758ebc21db7bba020a9984bfe5631767 /testing/gdm/gdm.initd | |
parent | 738f3de16046a71713a0e1b8eec1fce8d58f337a (diff) |
testing/gdm: install stub PAM policy, init script, create gdm user for the user selection UI
Diffstat (limited to 'testing/gdm/gdm.initd')
-rw-r--r-- | testing/gdm/gdm.initd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/gdm/gdm.initd b/testing/gdm/gdm.initd new file mode 100644 index 00000000000..b6b6994f2a1 --- /dev/null +++ b/testing/gdm/gdm.initd @@ -0,0 +1,18 @@ +#!/sbin/openrc-run + +GDM_LOG_FILE="/var/log/${SVCNAME}.log" + +description="GNOME display manager" +command=/usr/sbin/${SVCNAME} +command_args="${gdm_opts}" +command_background="true" +start_stop_daemon_args="-w 100 --user ${SVCNAME}:${SVCNAME} --stdout $GDM_LOG_FILE --stderr $GDM_LOG_FILE" +pidfile="/run/${SVCNAME}.pid" + +start_pre() { + checkpath -f -m 0644 -o ${SVCNAME}:${SVCNAME} "$GDM_LOG_FILE" +} + +depend() { + need net +} |