Create a custom systemd service

From DevOps Notebook
Revision as of 06:33, 14 May 2020 by MilosZ (talk | contribs) (Created page with "<pre> # vim /etc/systemd/system/myservice.service </pre> <pre> [Unit] Description=My systemd service. [Service] Type=simple ExecStart=/bin/bash /usr/bin/my_service.sh [Inst...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
# vim /etc/systemd/system/myservice.service
[Unit]
Description=My systemd service.

[Service]
Type=simple
ExecStart=/bin/bash /usr/bin/my_service.sh

[Install]
WantedBy=multi-user.target