add systemd service

This commit is contained in:
JerryXiao 2021-01-16 11:34:40 +08:00
parent 58b8818218
commit 9af2567ab3
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA
3 changed files with 18 additions and 1 deletions

8
pacroller.service Normal file
View file

@ -0,0 +1,8 @@
[Unit]
Description=Unattended upgrade for archlinux
After=network-online.target
[Service]
User=root
Type=simple
ExecStart=/usr/bin/pacroller run

9
pacroller.timer Normal file
View file

@ -0,0 +1,9 @@
[Unit]
Description=Scheduled unattended upgrade for archlinux
[Timer]
OnCalendar=*-*-* 12:00:00
RandomizedDelaySec=15m
[Install]
WantedBy=timers.target

View file

@ -8,7 +8,7 @@ setuptools.setup(
version="0.0.1", version="0.0.1",
author="Jerry Xiao", author="Jerry Xiao",
author_email="pacroller@mail.jerryxiao.cc", author_email="pacroller@mail.jerryxiao.cc",
description="unattended pacman upgrade for archlinux", description="unattended upgrade for archlinux",
long_description=long_description, long_description=long_description,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
url="https://github.com/isjerryxiao/pacroller", url="https://github.com/isjerryxiao/pacroller",