Re: Display Manager rc.d scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, May 13, 2011 at 9:50 PM, Tavian Barnes
<tavianator@xxxxxxxxxxxxxx> 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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux