ellypony

joined 1 year ago
[–] [email protected] 0 points 1 week ago

Finally, a reason to be proud of my state

 

I should preface this by stating I am a novice in general when it comes to the linux world.

I'm trying to write a bash script that will run on an ordinary basis as a cron job. It's simple enough it just runs apt update -y apt upgrade -y apt autoclean every 24 hours. The issue is that I also would like to be able to schedule a restart automatically if a restart would be frugal. I don't really want to just rely on checking for /var/run/reboot-required, and the output from debian-goodies checkrestart seems to be pretty dated and incompatible with scripts in general. Would it be better to run systemctl status and check for degradation, and then schedule a restart based on that? Does anyone far smarter than me have a solution?

 
[–] [email protected] 12 points 1 month ago (1 children)

I see. It's all coming back to me now... Said the blind man. to his deaf son. pissing in the wind.

0
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]
[–] [email protected] 8 points 2 months ago

haven't heard that name since I was 11 years old in the back of a Dave & Busters

1
Yeah (lemmy.world)
[–] [email protected] 0 points 4 months ago

that's my dad

 
[–] [email protected] 0 points 5 months ago (1 children)

Cooper, today you remind me of a small mexican chi-wow-wow