aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gdm/gdm.initd
blob: b6b6994f2a1be07f3556044a0b7eb15707f58847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}