This is an old revision of the document!
Silverbullet
useradd -d /data/daemons/silverbullet -m silverbullet -g users
umask 0002 in bashrc
Download: https://github.com/silverbulletmd/silverbullet/releases
unzip silverbullet-server-linux-x86_64.zip
./silverbullet /data/common/willy/Notes/ –hostname 127.0.0.1 –port 8001
Startup
Since i use OpenRC, to start silverbullet simply create the following script under /etc/init.d:
- /etc/init.d/silverbullet
#!/sbin/openrc-run # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 description="Silverbullet.md - personal note taking app" pidfile="/run/silverbullet.pid" command_background=true command="/deposito/daemons/silverbullet/silverbullet" command_args="/deposito/common/willy/Notes/ --hostname 127.0.0.1 --port 8001" command_user="silverbullet:users" depend() { need net }
Make it executable and add the service to the default runlevel:
chmod +x /etc/init.d/silverbullet rc-update add silverbullet default
Update
Download new binary (see link above) and simply replace old one and restart service.