Skip to content

Instantly share code, notes, and snippets.

@bcomnes
Last active May 18, 2019 22:45
Show Gist options
  • Select an option

  • Save bcomnes/50d7c52120a2a46b9fdf to your computer and use it in GitHub Desktop.

Select an option

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

bcomnes commented Jan 17, 2016

Copy link
Copy Markdown
Author

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

clehner commented Jan 17, 2016

Copy link
Copy Markdown

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

bcomnes commented Apr 4, 2016

Copy link
Copy Markdown
Author

Good to know!

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