diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/dktools/rshdown.conf.sample |
Initial commit
Diffstat (limited to 'support/dktools/rshdown.conf.sample')
-rw-r--r-- | support/dktools/rshdown.conf.sample | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/support/dktools/rshdown.conf.sample b/support/dktools/rshdown.conf.sample new file mode 100644 index 0000000000..ba2e4195dc --- /dev/null +++ b/support/dktools/rshdown.conf.sample @@ -0,0 +1,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 + |