GithubHelp home page GithubHelp logo

jirutka / apk-autoupdate Goto Github PK

View Code? Open in Web Editor NEW
50.0 10.0 10.0 29 KB

Automatic updates for Alpine Linux and other systems using apk-tools

License: MIT License

Makefile 9.68% Shell 49.13% C 41.19%
apk-tools alpine-linux automatic-updates checkrestart

apk-autoupdate's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apk-autoupdate's Issues

0 Downtime

Hey there, thanks for building this! I run my Ubuntu distros using their livepatch service so critical stuff gets patched live on-the-fly. Is there a way to do this on Alpine too without downtime?

Time for some sort of release?

I know there are still issues like #3 but maybe it is time to create a tagged release candidate if not a tagged stable release?

Ready for Prime Time?

I've been hosting all my stuff on Alpine and was wondering if something like this existed.

After some googling I found this, and it made me super happy. Do you think this is ready for prime time? I'm also happy to start testing the package. How can I help?

All messages are output to stderr

I noticed all messages, regardless of their importance are redirected to stderr.

This bother me because I've set up a cronjob for apk-autoupdate to run every day like so:

[email protected]
0       2       *       *       *       /usr/sbin/apk-autoupdate > /dev/null

I would expect "Checking available updates..." to be redirected to /dev/null accordingly. Right now, I get an email every day telling me that apk-autoupdate is checking for available updates.

Design Contribution Proposal

Hi,

I am a graphic designer. As you can see from my profile, I make contributions to open source projects. I would also like to contribute to this project. Do you need a design? I can design a logo if you want.

procs-need-restart: invalid option: -c

Running on Alpine edge, no changes to default configuration. Getting the following error message. Packages are nevertheless updated, but of course relevant processes not restarted.

apk-autoupdate: Checking available updates...
apk-autoupdate: Upgrading packages:  busybox-initscripts
(1/1) Upgrading busybox-initscripts (3.1-r5 -> 3.1-r6)
Executing busybox-initscripts-3.1-r6.post-upgrade
OK: 250 MiB in 99 packages
procs-need-restart: invalid option: -c

Usage: procs-need-restart [options] [PID...]

Find processes that use (maps into memory) files which have been deleted
or replaced on disk (and the new files are not identical to the mapped ones).
If no PID is specified, scan all processes.

This program is part of apk-autoupdate.

Options:
  -f PATT*   Specify paths of mapped files to include/exclude from checking.
             Syntax is identical with fnmatch(3) with no flags, but with
             leading "!" for negative match (exclude). This option may be
             repeated.

  -v         Report all affected mapped files.

  -h         Show this message and exit.

  -V         Print program version and exit.

Please report bugs at <https://github.com/jirutka/apk-autoupdate/issues>
-----BEGIN SUMMARY-----
Upgraded packages:
  busybox-initscripts (3.1-r5 -> 3.1-r6)

-----END SUMMARY-----

programs_services doesn't seem to work

Disclaimer: I reproduced this only once.

Environment

% doas cat /etc/apk/autoupdate.conf
# Configuration for apk-autoupdate.

# List of packages that should not be automatically upgraded.
# Note: Case patterns (shell "case") may be used.
#packages_blacklist="linux-*"

# List of services that may be automatically restarted.
# Note: Case patterns (shell "case") may be used.
#services_whitelist=""

# List of services that should not be automatically restarted.
# Note: Case patterns (shell "case") may be used.
#services_blacklist="*"

# List of colon separated mappings between program path, the corresponding
# service and optionally action (e.g. restart, reload) to be performed.
# Example: /usr/sbin/nginx:nginx:reload.
# Note: Case patterns (shell "case") may be used in program path.
#programs_services=""
programs_services="/usr/bin/miniflux:miniflux:restart"

# List of fnmatch patterns specifying files to include/exclude from checking
# when scanning processes that use some files that have been upgraded.
#check_mapped_files_filter="!/dev/* !/home/* !/run/* !/tmp/* !/var/* *"

# Options to pass into OpenRC runscripts when restarting service.
#rc_service_opts='--ifstarted --quiet --nocolor --nodeps'
% doas crontab -l
# do daily/weekly/monthly maintenance
# min   hour    day     month   weekday command
*/15    *       *       *       *       run-parts /etc/periodic/15min
0       *       *       *       *       run-parts /etc/periodic/hourly
0       2       *       *       *       run-parts /etc/periodic/daily
0       3       *       *       6       run-parts /etc/periodic/weekly
0       5       1       *       *       run-parts /etc/periodic/monthly
0       0       *       *       *       apk-autoupdate

Expected

When miniflux updated from 2.0.34 to 2.0.35, it should have had automatically restarted the service.

Observed

Service wasn't restarted automatically. miniflux -version outputted 2.0.35, but my web instance was still running 2.0.34. A manual doas /etc/init.d/miniflux restart was necessary.

Happy to provide more logs if needed for troubleshooting, just let me know which ones.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.