[arch-general] Display Manager rc.d scripts
Tom Gundersen
teg at jklm.no
Fri May 13 18:03:54 EDT 2011
On Fri, May 13, 2011 at 9:50 PM, Tavian Barnes
<tavianator at tavianator.com> wrote:
> $ tail /etc/rc.conf
> DAEMONS1=(syslog-ng dbus)
> DAEMONS2=(named ifplugd net-profiles @alsa @acpid @ddclient @privoxy
> @openntpd @sshd @mysqld @httpd @git-daemon @samba @sensors
> @avahi-daemon @cups @crond)
>
> if [ "$RUNLEVEL" = "5" ];
> then
> DAEMONS=(${DAEMONS1[@]} @kdm ${DAEMONS2[@]})
> else
> DAEMONS=(${DAEMONS1[@]} ${DAEMONS2[@]})
> fi
>
> The best of both worlds.
That's a neat trick!
Beware though, that this kind of stuff is absolutely not supported and
might break at any moment.
Cheers,
Tom
More information about the arch-general
mailing list