summary refs log tree commit diff
path: root/.config/rc/init.d/syncthing
blob: 8a790f837515a2901a032109cdab602ead582b90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/openrc-run
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License, v2 or later

supervisor=supervise-daemon
command="/usr/bin/syncthing"
command_args="serve --no-browser --no-restart --logflags=0"
error_logger="logger -t '${RC_SVCNAME}' -p daemon.error"

extra_started_commands="browser"
browser() {
	syncthing browser
	eend $? "Opened syncthing gui in the browser"
}

start_post() {
	pkill -RTMIN+3 waybar
}
stop_post() {
	pkill -RTMIN+3 waybar
}