You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: systemd.md
+8-9
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,8 @@
9
9
- Reload Configuration on SIGHUP
10
10
- See logs
11
11
12
-
# systemd Service File
13
12
14
-
##Modify the service file
13
+
# Modify the service file
15
14
16
15
```
17
16
[Service]
@@ -28,7 +27,7 @@ TimeoutSec=10
28
27
Change the `user` and `group` to your own user.
29
28
Make sure `WorkingDirectory` and `ExecStart` points to existing own paths.
30
29
31
-
##Copy the Service File to the Systemd Directory
30
+
# Copy the Service File to the Systemd Directory
32
31
33
32
You need to copy your .service file to the `/etc/systemd/system`
34
33
directory. This is where systemd looks for service files. You'll need superuser
@@ -38,14 +37,14 @@ privileges to do this.
38
37
sudo cp ical-git.service /etc/systemd/system/
39
38
```
40
39
41
-
##Reload Systemd Daemon:
40
+
# Reload Systemd Daemon:
42
41
43
42
After adding or modifying any service file, you need to reload the systemd daemon so it can recognize the new or changed service file.
44
43
```console
45
44
sudo systemctl daemon-reload
46
45
```
47
46
48
-
##Enable the Service
47
+
# Enable the Service
49
48
50
49
If you want your service to start automatically on boot, you should enable it.
51
50
This step is optional but recommended for most services that you want to run
@@ -55,7 +54,7 @@ continuously.
55
54
sudo systemctl enable ical-git.service
56
55
```
57
56
58
-
##Start the Service
57
+
# Start the Service
59
58
60
59
Now, you can start your service. If you've enabled it, this step is technically
61
60
optional since it will start on the next boot, but you'll likely want to start
@@ -65,21 +64,21 @@ it immediately for testing purposes.
65
64
sudo systemctl start ical-git.service
66
65
```
67
66
68
-
##Check the Service Status
67
+
# Check the Service Status
69
68
To verify that your service is running as expected, you can check its status.
70
69
71
70
```console
72
71
sudo systemctl status ical-git.service
73
72
```
74
73
75
-
##Reload Configuration on SIGHUP
74
+
# Reload Configuration on SIGHUP
76
75
`ical-git` can reload its configuration file when it receives the SIGHUP signal. To reload the configuration without restarting the service, use the following command:
0 commit comments