-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathminirc.conf
74 lines (63 loc) · 2.21 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
#!/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 daemons which are listed to the user
DAEMONS="syslog-ng iptables alsa crond dbus wpa_supplicant dhcpcd sshd privoxy polipo acpid mpd vsftpd lighttpd ntpd"
# 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.
ENABLED="@syslog-ng @crond @dhcpcd @sshd"
# Choose the udev implementation. The first line does auto-detection.
[ -f /usr/lib/systemd/systemd ] && UDEV="systemd" || { [ -f /usr/bin/udevd ] && UDEV="eudev" || UDEV="busybox"; }
#UDEV="systemd"
#UDEV="eudev"
#UDEV="busybox"
# The device of the wired network
NETWORK_INTERFACE="eth0"
# The device of the wireless network
WIFI_INTERFACE="wlan0"
# The hostname of the machine
HOSTNAME="$(cat /etc/hostname)"
# ===============================================================
# == Overriding start/stop/poll scripts for individual daemons ==
# ===============================================================
# You can define the functions custom_start, custom_stop and custom_poll here
# to override 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
# sshd)
# /usr/bin/sshd -f /my/other/config.conf;;
# *)
# default_start "$@";; # keep the default as fall-back
# esac
#}
# custom_stop <daemon_name>
# - This function stops daemons.
#
#custom_stop () {
# case "$1" in
# sshd)
# killall sshd;;
# *)
# default_stop "$@";; # keep the default as fall-back
# 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
# sshd)
# pgrep sshd > /dev/null;;
# *)
# default_poll "$@";; # keep the default as fall-back
# esac
#}