forked from hut/minirc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
minirc.conf
126 lines (108 loc) · 3.63 KB
/
minirc.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/bin/sh
# This file is sourced by /sbin/rc and can be used to locally change
# configuration variables and startup functions.
#
# ======================================
# == Defining configuration variables ==
# ======================================
# This is a space-separated list of all core daemons. Be careful.
#CORE="apifs network udev mount"
# This is a space-separated list of all locally defined daemons which are listed to the user
LOCAL="bitlbee bumblebeed icecast lighttpd polipo privoxy vsftpd wicd xen"
# This is a space-separated list of all daemons you do not want to see
DISABLE="dhcpcd conman iptables syslog-ng bitlbee icecast lighttpd polipo privoxy wicd"
# This is a space-separated list of daemons which are run on boot. You may
# prefix a daemon name with a "@" character to make it run in the background.
# Be careful with "${CORE}", it should be kept at the head of the list.
ENABLED="${CORE} syslog dbus consolefont keymap @acpid @crond @sshd @ldm @nfsmount @local"
# Choose the udev implementation. Default is auto-detection (systemd-udev if available, busybox else)
#UDEV="systemd"
#UDEV="busybox"
#UDEV="eudev"
# Parameter for setfont
FONT="Lat2-Terminus16 -m 8859-2"
# Keymap to use
KEYMAP=de
# The device of the wired network
NETWORK_INTERFACE="eth0"
# The device of the wireless network
WIFI_INTERFACE="wlan0"
# User and Group for ldm
LDM_USER=1000
LDM_GROUP=1001
# ===============================================================
# == Overriding start/stop/poll scripts for individual daemons ==
# ===============================================================
# You can define the functions custom_start, custom_stop and custom_poll here
# to extend the default_* functions in /sbin/rc and to specify custom
# starting parameters or add new services. Examples follow.
# custom_start <daemon_name>
# - This function starts daemons.
#
custom_start () {
case "$1" in
bitlbee)
su -s /bin/sh -c 'bitlbee -F' bitlbee
;;
bumblebeed)
/usr/bin/bumblebeed -D
;;
icecast)
icecast -b -c /etc/icecast.xml
;;
lighttpd)
lighttpd -f /etc/lighttpd/lighttpd.conf
;;
polipo)
su -c 'polipo daemonise=true logFile="/var/log/polipo.log"' -s /bin/sh - nobody
;;
privoxy)
privoxy --user privoxy.privoxy /etc/privoxy/config
;;
vsftpd)
vsftpd &
;;
wicd)
/usr/bin/wicd
;;
xen)
mount xenfs -t xenfs /proc/xen
mount xenstore -t tmpfs -o mode=755 /var/lib/xenstored
/usr/bin/grep -q control_d /proc/xen/capabilities
. /etc/conf.d/xenstored
/usr/bin/xenstored --pid-file /run/xenstored.pid $XENSTORED_ARGS
/usr/bin/xenstore-write "/local/domain/0/name" "$XENDOM0_NAME"
/usr/bin/xenstore-write "/local/domain/0/domid" 0
. /etc/conf.d/xenconsoled
/usr/bin/xenconsoled --pid-file /run/xenconsoled.pid --log=${XENCONSOLED_LOG} --log-dir=${XENCONSOLED_LOG_DIR} $XENCONSOLED_ARGS
/etc/xen/scripts/xendomains start
;;
*)
# fallback: start the command
"$1"
;;
esac
}
# custom_stop <daemon_name>
# - This function stops daemons.
#
custom_stop () {
case "$1" in
*)
# fallback: kill all processes with the name of the command
killall "$1"
;;
esac
}
# custom_poll <daemon_name>
# - This function checks whether daemons run or not.
# - It returns zero if the daemon runs, nonzero if the daemon does not run.
#
custom_poll () {
case "$1" in
*)
# fallback: check if any processes of that name are running
pgrep "^$1\$" >& /dev/null
;;
esac
}