summarylogtreecommitdiffstats
path: root/lemursd.initd
blob: 2b20e1030e9a0117b5bfdd4c8191193be86bb736 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/sbin/openrc-run

# inspired by https://github.com/gentoo/guru/blob/master/gui-apps/lemurs/files/lemurs.initd

name=$RC_SVCNAME
description="lemurs TUI display manager"
supervisor="supervise-daemon"

depend() {
   need localmount
   after bootmisc consolefont modules netmound
   after keymaps
   after elogind

   use dbus
}

start() {
   tty=7
   start-stop-daemon --start --background \
   --exec "/usr/bin/openvt" -- --console ${tty} --switch -- /usr/bin/lemurs
   
   eend $?
}