Systemd with bash script

Posted Leave a commentPosted in Linux, Operating systems, Scripting, Uncategorized

To load my firewall rules I have always used a init script containing all my iptables rules. However with the switch to systemd in Debian Jessie things have changed a bit. create a service file in /etc/systemd/system. In my case this is /etc/systemd/system/firewall.service [Unit] Description=Firewall [Service] Type=oneshot ExecStart=/bin/sh /scripts/ start ExecStop=/bin/sh /scripts/ stop ExecReload=/bin/sh /scripts/ […]

Posted Leave a commentPosted in Uncategorized

Welcome to,  once again an attempt to keep a blog which contains usefull how-to’s about networking, security, linux, etc … . During the next few days and weeks you might notice some things changing like new plugins being added etc. The site is brand new, so I’m not sure yet how I want it […]