抱歉,您的浏览器无法访问本站

本页面需要浏览器支持(启用)JavaScript


了解详情 >

linux服务配置文件

1
2
### 创建服务文件 
vim /etc/systemd/system/EmbyMedia_GoogleMovie_play.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Rclone
AssertPathIsDirectory=/mnt/googledrive
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/bin/rclone mount googledrive:movies /mnt/googledrive --umask 0000 --default-permissions --allow-non-empty --allow-other --buffer-size 32M --dir-cache-time 12h --vfs-cache-mode writes --vfs-read-chunk-size 64M --vfs-read-chunk-size-limit 1G
ExecStop=/bin/fusermount -u /mnt/googledrive
Restart=on-abort
User=root

[Install]
WantedBy=default.target
1
2
3
4
5
6
#重载daemon,让新的服务文件生效
systemctl daemon-reload
#启动rclone
systemctl start EmbyMedia_VIP_Movie_play EmbyMedia_VIP_TVasia_play EmbyMedia_VIP_TVnf_play
#设置开机启动:
systemctl

评论