Updates
This commit is contained in:
@@ -84,3 +84,36 @@ You can also use environment variables in the config file. Example:
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
## System Processes
|
||||
|
||||
Run Turbosync as a system process to keep it running in the background.
|
||||
|
||||
### Systemd Config
|
||||
|
||||
Use this template to create a systemd service for turbosync.
|
||||
|
||||
```ini
|
||||
[Unit]
|
||||
Description=Service Name
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/home/user/.bun/bin/turbosync
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
Environment="PATH=/usr/bin:/home/user/.bun/bin:/home/user/.nvm/versions/node/v20.18.1/bin:${PATH}"
|
||||
User=user
|
||||
WorkingDirectory=/home/user/services/turbosync/service-name
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
After this you can run:
|
||||
|
||||
```bash
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable turbosync-service-name
|
||||
sudo systemctl start turbosync-service-name
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user