Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| #!/bin/bash | |
| # NAS IP: 192.168.1.10 in this example | |
| # DHCP scope reservation for macvlan: 192.168.1.210/28 (Details below) | |
| ## Network: 192.168.1.210/28 | |
| ## HostMin: 192.168.1.211 | |
| ## HostMax: 192.168.1.224 | |
| ## Hosts/Net: 14 | |
| # Create a Synology macvlan0 bridge network attached to the physical eth0, and add the ip range scope (sudo) |
| # amavis messages | |
| amavis\[[0-9]+\]: \([-0-9]+\) Passed (CLEAN|BAD-HEADER|SPAM|BANNED) | |
| # avahi daemon: warnings about invalid repsonses and such | |
| avahi-daemon\[[0-9]+\]: Invalid (query packet|legacy unicast query packet|response packet from host) | |
| avahi-daemon\[[0-9]+\]: Received response from host [.0-9]+ with invalid source port [0-9]+ on interface | |
| avahi-daemon\[[0-9]+\]:( last)? message repeated [0-9]+ times | |
| avahi-daemon\[[0-9]+\]: server.c: Packet too short or invalid while reading response record. | |
| avahi-daemon\[[0-9]+\]: dbus-protocol.c: Too many objects for client |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)