File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,6 +145,39 @@ authentication details.
145145 - For local hosting with Docker, use the provided ` docker run ` command with environment variables.
146146 - For remote hosting, use the environment variable service provided by your cloud hosting provider.
147147
148+ ### Systemd setup
149+
150+ Create a service file in ` /etc/systemd/system ` and enable it to run at startup.
151+ Config & JAR files are in the same folder path.
152+ Add the below to your file (change values as per your setup) and name the file as ` linkora.service ` .
153+
154+ ``` javascript
155+ [Unit]
156+ Description= linkora service
157+ After= network .target
158+
159+ [Service]
160+ SuccessExitStatus= 143
161+ User= root
162+ Group= root
163+ Type= simple
164+ EnvironmentFile= PATH_TO_CONFIG / linkoraConfig .json
165+ WorkingDirectory= PATH_TO_JAR_FILE
166+ ExecStart= / usr/ bin/ java - jar linkoraSyncServer .jar
167+ ExecStop= / bin/ kill - 15 $MAINPID
168+
169+ [Install]
170+ WantedBy= multi- user .target
171+ ```
172+
173+ Once saved, reload the daemon & start the service:
174+
175+ ``` javascript
176+ systemctl daemon- reload
177+ systemctl start linkora .service
178+ systemctl enable linkora .service
179+ ```
180+
148181### Join the Community
149182
150183[ ![ Join us on Discord] ( https://discord.com/api/guilds/1214971383352664104/widget.png?style=banner2 )] ( https://discord.gg/ZDBXNtv8MD )
@@ -158,4 +191,4 @@ Want to help improve Linkora Sync Server? You can contribute by:
158191
159192### License
160193
161- This project is licensed under the MIT License.
194+ This project is licensed under the MIT License.
You can’t perform that action at this time.
0 commit comments