Start Syncthing service

This commit is contained in:
Severin Kaderli 2025-01-05 18:36:09 +01:00
parent 524a11b9dd
commit b912b6300e
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4

View file

@ -25,7 +25,9 @@ CONFIG_SYSTEMD_SERVICES=(
"upower.service"
)
CONFIG_SYSTEMD_USER_SERVICES=()
CONFIG_SYSTEMD_USER_SERVICES=(
"syncthing.service"
)
output::section "Copying systemd services"
for service in "${SYSTEM_DIR}/etc/systemd/system/"*; do
@ -43,6 +45,6 @@ done
for service in "${CONFIG_SYSTEMD_USER_SERVICES[@]}"; do
output::log "Enabling service ${YELLOW}${service}${DEFAULT}"
systemctl --user enable "${service}" |& output::debug
systemctl --user enable --now "${service}" |& output::debug
done
output::success "Successfully enabled systemd services"