Start Syncthing service
This commit is contained in:
parent
524a11b9dd
commit
b912b6300e
1 changed files with 4 additions and 2 deletions
|
@ -25,7 +25,9 @@ CONFIG_SYSTEMD_SERVICES=(
|
||||||
"upower.service"
|
"upower.service"
|
||||||
)
|
)
|
||||||
|
|
||||||
CONFIG_SYSTEMD_USER_SERVICES=()
|
CONFIG_SYSTEMD_USER_SERVICES=(
|
||||||
|
"syncthing.service"
|
||||||
|
)
|
||||||
|
|
||||||
output::section "Copying systemd services"
|
output::section "Copying systemd services"
|
||||||
for service in "${SYSTEM_DIR}/etc/systemd/system/"*; do
|
for service in "${SYSTEM_DIR}/etc/systemd/system/"*; do
|
||||||
|
@ -43,6 +45,6 @@ done
|
||||||
|
|
||||||
for service in "${CONFIG_SYSTEMD_USER_SERVICES[@]}"; do
|
for service in "${CONFIG_SYSTEMD_USER_SERVICES[@]}"; do
|
||||||
output::log "Enabling service ${YELLOW}${service}${DEFAULT}"
|
output::log "Enabling service ${YELLOW}${service}${DEFAULT}"
|
||||||
systemctl --user enable "${service}" |& output::debug
|
systemctl --user enable --now "${service}" |& output::debug
|
||||||
done
|
done
|
||||||
output::success "Successfully enabled systemd services"
|
output::success "Successfully enabled systemd services"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue