Skip to content

Commit d753e04

Browse files
authored
Create pre_start_example.service
1 parent 8faf3f3 commit d753e04

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

systemd/pre_start_example.service

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[Unit]
2+
Description=Promtail
3+
4+
[Service]
5+
User=root
6+
WorkingDirectory=/opt/promtail/
7+
ExecStartPre=/bin/sleep 30
8+
ExecStart=/opt/promtail/promtail-linux-amd64 --config.file=./ec2-promtail.yaml
9+
SuccessExitStatus=143
10+
TimeoutStopSec=10
11+
Restart=on-failure
12+
RestartSec=5
13+
14+
[Install]
15+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)