Skip to content

Commit c2e2ff2

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 01f4f91 + 7510f83 commit c2e2ff2

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

README.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)