#!/sbin/openrc-run DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus" description="Lightweight Wayland notification daemon" command="/usr/bin/mako" supervisor=supervise-daemon error_logger="logger -t '${RC_SVCNAME}' -p daemon.error" depend() { need dbus provide notification-daemon } start_pre() { if [ -z "$WAYLAND_DISPLAY" ]; then eerror "\$WAYLAND_DISPLAY unset, can't proceed." return 1 fi } extra_started_commands="reload" description_reload="Reload mako configuration using makoctl" reload() { makoctl reload eend $? "Reloaded mako configuration" }