Last active
January 23, 2025 19:18
-
-
Save Max95Cohen/a528c7e42dfe29999eb9185de16759cc to your computer and use it in GitHub Desktop.
beanstalkd systemd service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo useradd -M -r -s /bin/false beanstalkd_user | |
$ sudo vim /etc/systemd/system/beanstalkd.service | |
[Unit] | |
Description=beanstalkd | |
After=network.target | |
[Service] | |
Type=simple | |
Restart=always | |
RestartSec=5s | |
ExecStart=/usr/bin/beanstalkd -l 127.0.0.1 | |
User=beanstalkd_user | |
Group=beanstalkd_user | |
LimitNOFILE=4096 | |
WorkingDirectory=/usr/bin | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment