book/operation/howto/restart-services
How to restart services
Send a restart-service
message mentioning the service
name of the service to restart. Use the ! operator of the
configuration language to send a message (as opposed to make an
assertion):
! <restart-service <daemon <wifi-daemon "wlan0">>>
! <restart-service <daemon user-settings-daemon>>
In future, a command-line tool for sending messages to a system
dataspace will be provided; for now, create temporary configuration
language scripts in /run/etc/syndicate/services:
THROCK=/run/etc/syndicate/services/throck.pr
echo '! <restart-service <daemon <wifi-daemon "wlan0">>>' > $THROCK
sleep 1
rm -f $THROCK
Copyright © 2021–2023 Tony Garnock-Jones, CC BY 4.0
