darkk/redsocks — pull request #29 by tlvince (2012-09-09 13:32:33+00:00)
Title: Add systemd service unit

This adds a basic `systemd.service` unit for redsocks.

I maintain the [redsocks package for Arch Linux][1], which is transitioning away
from `sysvinit` to `systemd`. Although I'm new to `systemd`, it is my
understanding that one advantage of it is it allows for `rc` scripts to be
maintained upstream rather than multiple idiosyncratic scripts per distribution.

Note, I labelled it 'basic' as it also highlights a feature request for
`redsocks`: a `-u, --user` option that allows `redsocks` to drop root privileges
and switch to the given userid. This will mean `su` can be removed and simplify
the service file.

[1]: https://aur.archlinux.org/packages.php?ID=41765