Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Running as daemon with systemd #24
I managed to run The Onion Box as daemon with systemd (under Ubuntu 16.04) based on the wiki:
# Run The Onion Box as background service # https://github.com/ralphwetzel/theonionbox/ [Unit] Description=The Onion Box Documentation=https://github.com/ralphwetzel/theonionbox/wiki After=network.target [Service] Type=simple User=theonionbox WorkingDirectory=~ ExecStart=/srv/theonionbox/theonionbox.py --mode=service Restart=on-failure [Install] WantedBy=multi-user.target
Maybe the service file can be hardened? My Debian Jessie box (Bananian Linux) use no systemd by default. Therefore I cannot dive into it at the moment. But my snippet should be a good start. Capabilities and syscalls whitelist are still missing. Some directives may be only available on newer systemd versions.
What do others think?