SystemD Service Examples

Oneshot

[Unit]
Description=A simple oneshot service

[Service]
Type=oneshot
ExecStart=/bin/bash -c "echo Hello world"
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *