aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gdm/gdm.initd
blob: 4c4d63df5dc2ffa840640c779f1f36af187c674c (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 --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 dbus
}