Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Please daemonize the applictaion #29

Open
guarismo opened this issue Mar 18, 2022 · 3 comments
Open

Feature Request: Please daemonize the applictaion #29

guarismo opened this issue Mar 18, 2022 · 3 comments

Comments

@guarismo
Copy link

How can I run thins in the background with a 'screen'?
How can I register it as a service in Linux and use systemd?

@leandrojmp
Copy link

I run the duologsync utility as a service with systemd without any problems, you just need to create the systemd service file.

If you want an example, here is the one I'm currently using:

#/etc/systemd/system/duologsync.service
#
[Unit]
Description=Duo Log Sync
After=network-online.target
Requires=network-online.target

[Service]
Type=simple
User=duologsync
Group=duologsync
ExecStart=/var/opt/duo_log_sync/.venv/bin/duologsync /var/opt/duo_log_sync/config/config.yml
Restart=on-failure
RestartSec=5s
KillSignal=SIGINT

[Install]
WantedBy=multi-user.target

In my case I created the user and group duologsync and I'm running it from the /var/opt/duo_log_sync, using a .venv.

@SysAdminforCoffee
Copy link

If this could be added to the Readme that would be great.

@leandrojmp the user/group creation doesn't cause a permissions issue with Python?

@leandrojmp
Copy link

@SysAdminforCoffee I didn't had any issues, I was using it with a venv owned by the same user.

I'm not using this tool anymore, since I'm using Elasticsearch, I moved to the Elastic Agent Duo integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants