Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

cloud-torrent overwrites config file on shutdown #159

@pauperis

Description

@pauperis

I've just installed cloud-torrent version through

Then I created the following systemd unit file, which works great for managing cloud-init as a service

[Unit]
Description=Cloud Torrent System Daemon
After=network.target

[Service]
Type=simple
User=nginx
Group=nginx
WorkingDirectory=/home/nginx/Tools/cloud-torrent/
ExecStart=/usr/local/bin/cloud-torrent -h 127.0.0.1 --config-path /home/nginx/Tools/cloud-torrent/cloud-torrent.json --title "Cloud Torrent" --log --auth "admin:changeme"
StandardOutput=append:/var/log/cloud-torrent.log
Restart=on-failure
RestartSec=3

[Install]
WantedBy=multi-user.target

The previous systemd service works great for starting/stoping cloud-torrent but when I stop it, cloud-torrent always overwrites the config file /home/nginx/Tools/cloud-torrent/cloud-torrent.json It doesn't matter if I edit the file before starting cloud-torrent, it always overwrites the config file on shutdown. It's like cloud-torrent has an in memory config file or a cached one which is written on disk (decerialized) on each shutdown.

IS there any way to avoid it or to fix the issue? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions