Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added crontab for reboot management #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,20 @@ bot in another Matrix client, or using the create group chat button in Beeper
Desktop.

Currently the bridge will run in foreground, so you'll have to keep `bbctl run`
active somewhere (tmux is a good option). In the future, a service mode will be
active somewhere (tmux is a good option).

Use crontab to set the bridge up to start on reboot. If you would like logging
add the following entry to your crontab and replace `<bbctl path>` with the location of
bbctl, `<bridge name>` with the name of the bridge, and `<log path>` with the
location of where you would like logs saved:

`@reboot /<path>/bbctl run <bridge name> > /<log path>/<bridge name>.log`

If you do not want logging add the following to your crontab:

`@reboot /<path>/bbctl run <bridge name> > /dev/null`

In the future, a service mode will be
added where the bridge is registered as a systemd or launchd service to be
started automatically by the OS.

Expand Down