30 lines
		
	
	
		
			693 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			693 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
# /etc/systemd/system/mollysocket.service
 | 
						|
[Unit]
 | 
						|
Description=MollySocket
 | 
						|
After=network-online.target
 | 
						|
 | 
						|
[Service]
 | 
						|
Type=simple
 | 
						|
Environment="RUST_LOG=info"
 | 
						|
Environment="MOLLY_CONF=/opt/mollysocket/prod.toml"
 | 
						|
WorkingDirectory=/opt/mollysocket/
 | 
						|
 | 
						|
SetCredentialEncrypted=ms_vapid: \
 | 
						|
        ********************************************************************* \
 | 
						|
        **************************************
 | 
						|
Environment=MOLLY_VAPID_KEY_FILE=%d/ms_vapid
 | 
						|
 | 
						|
User=mollysocket
 | 
						|
Group=mollysocket
 | 
						|
UMask=0007
 | 
						|
 | 
						|
ExecStart=/opt/mollysocket/ms server
 | 
						|
KillSignal=SIGINT
 | 
						|
 | 
						|
Restart=on-failure
 | 
						|
 | 
						|
# Configures the time to wait before service is stopped forcefully.
 | 
						|
TimeoutStopSec=5
 | 
						|
 | 
						|
[Install]
 | 
						|
WantedBy=multi-user.target |