mirror of
https://github.com/isjerryxiao/pacroller.git
synced 2024-11-22 15:50:43 +08:00
add systemd service
This commit is contained in:
parent
58b8818218
commit
9af2567ab3
3 changed files with 18 additions and 1 deletions
8
pacroller.service
Normal file
8
pacroller.service
Normal 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
9
pacroller.timer
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Scheduled unattended upgrade for archlinux
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*-*-* 12:00:00
|
||||||
|
RandomizedDelaySec=15m
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
2
setup.py
2
setup.py
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue