File: run

package info (click to toggle)
runit-services 0.11.0
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 412 kB
  • sloc: sh: 479; makefile: 2
file content (21 lines) | stat: -rwxr-xr-x 428 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env /lib/runit/invoke-run
#Copyright: 2022 Lorenzo Puliti <plorenzo@disroot.org>
#License: CC0-1.0

DEFAULT_DISPLAY_MANAGER=$(cat /etc/X11/default-display-manager)

# don't start if slim is not the default DM
if [ $DEFAULT_DISPLAY_MANAGER != ##bin## ]; then
	exit 161
fi

sv start dbus || true
sv start elogind || true

if [ -x /bin/plymouth ] ; then
        /bin/plymouth quit || true
fi

exec 2>&1

exec ##bin## -n