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
7. You can run SC4S using systemd in one of two ways, depending on administrator preference and
67
+
6. You can run SC4S using systemd in one of two ways, depending on administrator preference and
83
68
orchestration methodology. These are not the only ways to run in a custom environment:
84
69
85
70
* Run the `entrypoint.sh` script (identical to that used in the container) directly using systemd.
86
71
* Alter the script to preconfigure SC4S, after which only the syslog-ng are run using systemd.
87
72
88
-
8. To run the `entrypoint.sh` script directly in systemd, create the SC4S unit file ``/lib/systemd/system/sc4s.service`` and add the following:
73
+
7. To run the `entrypoint.sh` script directly in systemd, create the SC4S unit file ``/lib/systemd/system/sc4s.service`` and add the following:
89
74
90
75
```ini
91
76
[Unit]
@@ -107,7 +92,7 @@ Restart=on-abnormal
107
92
WantedBy=multi-user.target
108
93
```
109
94
110
-
9. To run `entrypoint.sh` as a preconfigured script, modify the script by commenting out or removing the stanzas following the
95
+
8. To run `entrypoint.sh` as a preconfigured script, modify the script by commenting out or removing the stanzas following the
111
96
`OPTIONAL for BYOE` comments in the script. This prevents syslog-ng from being launched by the script. Then create the SC4S unit file ``/lib/systemd/system/syslog-ng.service`` and add the following content:
112
97
113
98
```ini
@@ -130,7 +115,7 @@ Restart=on-failure
130
115
WantedBy=multi-user.target
131
116
```
132
117
133
-
10. Create the file ``/etc/syslog-ng/env_file`` and add the following environment variables. Adjust the URL/TOKEN as needed.
118
+
9. Create the file ``/etc/syslog-ng/env_file`` and add the following environment variables. Adjust the URL/TOKEN as needed.
134
119
135
120
```dotenv
136
121
# The following "path" variables can differ from the container defaults specified in the entrypoint.sh script.
0 commit comments