なんだかすぐに見つからなかったので、 自分用に書いておく。 実行時のユーザ、グループは、 Serviceセクションに User=ユーザ Group=グループ で指定できる。 [Unit] Description=My Daemon [Service] ExecStart=/myhome/scripts/run.sh ExecStop=/bin/kill ${MAINPID} Restart=always Type=forking User=myuser Group=mygroup [Install] WantedBy=multi-user.target Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read ba