Skip to content

Commit 4ade418

Browse files
author
shanur-marsplay
committed
Adding comments for the reader to understand how systemd works
1 parent a351e00 commit 4ade418

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

systemd/marsplay.service

+9-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# I paired this up with aws system checks, In case of failed system check I applied the restart policy. So your system never goes
44
# out for more than 2 minutes even in case of seve crashes.
55

6-
# /etc/systemd/system/docker-compose-app.service
6+
# /etc/systemd/system/marsplay.service
77

88
[Unit]
99
Description=Docker Compose Application Service
@@ -20,4 +20,11 @@ StartLimitIntervalSec=60
2020
StartLimitBurst=3
2121

2222
[Install]
23-
WantedBy=multi-user.target
23+
WantedBy=multi-user.target
24+
25+
26+
# After doing this generate a soft link
27+
# instead of creating a soft link manuall, save this file (marsplay.service), and instruct systemd to create a soft link
28+
# call sudo systemctl enable marsplay.service
29+
# Enable basically creates a configuration file in the conf.d directory where all startup files are stored. So when the system reboots you
30+
# can be sure that this file will be run by systemd

0 commit comments

Comments
 (0)