mirror of
				https://github.com/9001/copyparty.git
				synced 2025-10-30 12:12:20 -06:00 
			
		
		
		
	* move service files from contrib/package/arch/ to /contrib/systemd/ * add simpler default copyparty.conf that puts users in jail * remove warning about .conf files in ~/.config/copyparty/ * update PKGBUILD with changes * add links to configuration examples in index.md * fix link to the example config * update README.md arch instructions --------- Co-authored-by: icxes <icxes@dev.null@need.moe> Co-authored-by: ed <s@ocv.me>
		
			
				
	
	
		
			27 lines
		
	
	
		
			842 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			842 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
| # this will start `/usr/bin/copyparty`
 | |
| # and read config from `$HOME/.config/copyparty.conf`
 | |
| #
 | |
| # unless you add -q to disable logging, you may want to remove the
 | |
| #   following line to allow buffering (slightly better performance):
 | |
| #   Environment=PYTHONUNBUFFERED=x
 | |
| 
 | |
| [Unit]
 | |
| Description=copyparty file server
 | |
| 
 | |
| [Service]
 | |
| Type=notify
 | |
| SyslogIdentifier=copyparty
 | |
| WorkingDirectory=/var/lib/copyparty-jail
 | |
| Environment=PYTHONUNBUFFERED=x
 | |
| Environment=PRTY_CONFIG=%h/.config/copyparty/copyparty.conf
 | |
| ExecReload=/bin/kill -s USR1 $MAINPID
 | |
| 
 | |
| # ensure there is a config
 | |
| ExecStartPre=/bin/bash -c 'if [[ ! -f %h/.config/copyparty/copyparty.conf ]]; then mkdir -p %h/.config/copyparty; cp /etc/copyparty/copyparty.conf %h/.config/copyparty/copyparty.conf; fi'
 | |
| 
 | |
| # run copyparty
 | |
| ExecStart=/usr/bin/python3 /usr/bin/copyparty
 | |
| 
 | |
| [Install]
 | |
| WantedBy=default.target
 |