[systemd-devel] transforming Iptables bash script to systemd service file -help
Lennart Poettering
lennart at poettering.net
Tue Oct 21 12:31:25 PDT 2014
On Fri, 12.09.14 13:04, lux-integ (lux-integ at btconnect.com) wrote:
> I will stick with the tried and tested bash scripts for iptables
> then try something like
>
> ExecStart=/bin/sh -c " path/to/IptablesScript"
>
> inside a servce file
>
> will this suffce ?
Yes. However, the "/bin/sh -c" thing is unnecessary. Just set the +x
bit on the script, add the she-bang to the first line and call it
directly.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list