在 中upstart,可以使用 发送自定义事件initctl emit custom-event。也可以在start on和stop on节上使用这些自定义事件。systemd 是否提供类似的东西?在Ubuntu wiki的SystemdForUpstartUsers页面上没有提到它。
upstart
initctl emit custom-event
start on
stop on
systemd upstart
systemd ×1
upstart ×1