-
Notifications
You must be signed in to change notification settings - Fork 136
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
Start SilverBullet on boot using systemctl #388
Closed
Conversation
This file contains 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
* Fully removes real-time collaboration * URL scheme rewrite
* refactor: start using css variables for theming * refactor: finish defining all currently used css vars * refactor: create dark mode with css vars * refactor: move color vars to own file * fix: switch order of style tags to priorize custom styles over main.css --------- Co-authored-by: TheLD <lars@adornis.de>
Closing this because it's stale |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
The use case will be to have SilverBullet cloud hosted on Linode (or any other virtual server). Using systemctl enables SilverBullet to start when the host starts up. Normally simple to set up; however, as SilverBullet is a binary installed and run through Deno, the system is unaware of Deno at startup.
Setup background
--user username:password
to allow me to log in..md
here.NOTES
Example: port:80 and 443
when using Cloudflare or another reverse proxy.systemctl Configuration
First, create a shell script that will launch SilverBullet; this will include all the required syntax to run as a service.
The file's contents should look like this; change details such as username to match your system.
Make sure the script is executable:
Test the script, this command should run and show details on the SilverBullet URL etc..
Adding the script to systemctl you need to create a service file:
Contents should look like this:
Then enable the service (adding it so it starts automatically)
sudo systemctl enable silverbullet.service
And then start the service:
If all goes well, the server will be started on the default port, to troubleshoot, use
journalctl -xe
. This will output a log showing errors on failed services.another note