Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add systemd service file #69

Open
evert-mouw opened this issue Dec 10, 2023 · 3 comments
Open

add systemd service file #69

evert-mouw opened this issue Dec 10, 2023 · 3 comments

Comments

@evert-mouw
Copy link

e.g. this works for me on Debian

microsocks.service

[Unit]
Description=microsocks is a tiny SOCKS5 server
Documentation=https://github.com/rofl0r/microsocks
After=network.target auditd.service

[Service]
EnvironmentFile=/etc/microsocks.conf
ExecStart=/usr/bin/microsocks -u ${MICROSOCKS_LOGIN} -P ${MICROSOCKS_PASSW}

[Install]
WantedBy=multi-user.target

/etc/microsocks.conf

# used by the systemd service file
MICROSOCKS_LOGIN="foo"
MICROSOCKS_PASSW="bar"

It's a bit simple, and could be expanded by improving security (chroot, user=nobody, logging, whatever) but it just works.

@rofl0r
Copy link
Owner

rofl0r commented Dec 15, 2023

that's cool but provision of service scripts has and will always be the responsibility of linux distros, not the software package itself. means i won't be adding this to the repo. i'll leave this open though so users can immediately see and copy/paste your script.

@srd424
Copy link

srd424 commented Dec 15, 2023 via email

@evert-mouw
Copy link
Author

TBH I'm not a huge fan of SystemD (although it has its uses) so I like software staying init neutral.
But adding it to e.g. docs/examples as @srd424 suggested maybe makes more sense than leaving issues open?
PS: Thanks for creating microsocks, it Just Works :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants