added some systemd documentation
This commit is contained in:
		
							parent
							
								
									19709d9db7
								
							
						
					
					
						commit
						2b557ba793
					
				
							
								
								
									
										30
									
								
								README.md
								
								
								
								
							
							
						
						
									
										30
									
								
								README.md
								
								
								
								
							| 
						 | 
					@ -31,6 +31,36 @@ The following OSC messages can be sent to the server.
 | 
				
			||||||
/get/cpu
 | 
					/get/cpu
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					It's running as a systemd service with the following configuration at */etc/systemd/system/osc_server.service*.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```bash
 | 
				
			||||||
 | 
					[Unit]
 | 
				
			||||||
 | 
					Description=OSC server for puredata
 | 
				
			||||||
 | 
					After=network.target
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Service]
 | 
				
			||||||
 | 
					Type=simple
 | 
				
			||||||
 | 
					User=pi
 | 
				
			||||||
 | 
					Group=pi
 | 
				
			||||||
 | 
					WorkingDirectory=/home/pi/sources/puredata/
 | 
				
			||||||
 | 
					ExecStart=/usr/bin/python3 osc_server.py
 | 
				
			||||||
 | 
					StandardOutput=syslog
 | 
				
			||||||
 | 
					StandardError=syslog
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Install]
 | 
				
			||||||
 | 
					WantedBy=multi-user.target
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Controlling the service is done with the following commands.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```bash
 | 
				
			||||||
 | 
					sudo systemctl start osc_server.service
 | 
				
			||||||
 | 
					sudo systemctl stop osc_server.service
 | 
				
			||||||
 | 
					sudo systemctl restart osc_server.service
 | 
				
			||||||
 | 
					sudo systemctl status osc_server.service
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# todo
 | 
					# todo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* have each chapter be more verbose
 | 
					* have each chapter be more verbose
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue