Skip to content

Instantly share code, notes, and snippets.

@Max95Cohen
Last active January 23, 2025 19:18
Show Gist options
  • Save Max95Cohen/a528c7e42dfe29999eb9185de16759cc to your computer and use it in GitHub Desktop.
Save Max95Cohen/a528c7e42dfe29999eb9185de16759cc to your computer and use it in GitHub Desktop.
beanstalkd systemd service
$ 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