Skip to content

Instantly share code, notes, and snippets.

@bcomnes
Last active May 18, 2019 22:45
Show Gist options
  • Save bcomnes/50d7c52120a2a46b9fdf to your computer and use it in GitHub Desktop.
Save bcomnes/50d7c52120a2a46b9fdf to your computer and use it in GitHub Desktop.
scuttlebot.service: /etc/systemd/service/scuttlebot@.service
[Unit]
Description=sbot
[Service]
ExecStart=/usr/local/bin/sbot server --host example.com --blobs.party
# Track https://github.com/ssbc/patchwork/issues/224 for info on --blobs.party
Restart=on-failure
ReadWriteDirectories=/home/%i/.ssb
User=%i
StandardOutput=null
StandardError=journal
[Install]
WantedBy=multi-user.target
@bcomnes
Copy link
Author

bcomnes commented Jan 17, 2016

Run this like:

$ systemctl enable --now scuttlebot@username.service

To run the sbot as username

Be sure to set the host as well. Someone let me know if there is an easy way to parameterize that.

@clehner
Copy link

clehner commented Jan 17, 2016

Be sure to set the host as well. Someone let me know if there is an easy way to parameterize that.

You can put the --args into a JSON config file at ~/.ssb/config, e.g.:

{"host": "example.com", "blobs": {"party": true}}

@bcomnes
Copy link
Author

bcomnes commented Apr 4, 2016

Good to know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment