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/firewall.sh start ExecStop=/bin/sh /scripts/firewall.sh stop ExecReload=/bin/sh /scripts/firewall.sh […]

open-sourced.be

Posted Leave a commentPosted in Uncategorized

Welcome to open-sourced.be,  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 […]