summaryrefslogtreecommitdiff
path: root/support/dktools/rshdown.conf.sample
blob: ba2e4195dca28a90de019e281e3494ce4eb4347e (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Allowed sender address:
# - One machine specified by IPv6 address: ::1
# - One machine specified by IPv4 address: 192.0.2.100
# - One network specified by IPv4 address/mask: 192.0.2.0/24
# - Alternatively mask in dotted notation: 192.0.2.0/255.255.255.0
sender		=	192.0.2.100

# Allowed sender port (any if not specified here).
sender port	=	1234

# Local UDP port we are using.
receiver port	=	1234

# File containing data to compare against packet contents.
file		=	/etc/rshdown/secret

# Signal number or case-insensitive name to send to init process.
# Only used if no command specified below.
# Signal names:  hup int quit ill trap abrt iot bus fpe kill usr1
#                segv usr2 pipe alrm term stkflt cld cont stop ttin
#                ttou urg xcpu xfsz vtalrm prof winch poll io pwr sys
# Alternatively: sighup sigint sigquit ...
# Signal names are system dependant, not every signal is supported on every
# system.
signal		=	sigpwr

# Command to execute on arrival of shutdown packet
# The command is passed to /bin/sh by the system() function.
# The shutdown command syntax is OS dependant, i.e. on Solaris
# we would use "shutdown -i0 -g0 -y" instead.
command		=	shutdown -h now > /dev/null 2>&1 &

# Syslog facility to use, one from:
# auth authpriv cron daemon ftp kern lpr mail news security syslog user
# uucp local0 local1 local2 local3 local4 local5 local6 local7
syslog facility	=	auth

# Flag: Syslog messages for discarded packets.
debug		=	off