mysql uptime days


SELECT
VARIABLE_VALUE AS Uptime_seconds,
NOW() AS "Now",
NOW() - INTERVAL VARIABLE_VALUE SECOND AS "Up since",
DATEDIFF(NOW(), NOW() - INTERVAL VARIABLE_VALUE SECOND) AS "Uptime_days"
FROM performance_schema.session_status
WHERE VARIABLE_NAME = 'Uptime';

brave fedora

sudo dnf install dnf-plugins-core
sudo dnf config-manager –add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/
sudo rpm –import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
sudo dnf install brave-browser

Error: /usr/bin/apt-get failed, exitcode=100

Downloading packages
Failed to register the CT: PRL_ERR_VZCTL_OPERATION_FAILED (Details: Creating OS template cache for ubuntu-20.04-x86_64 template

tune2fs 1.42.9 (28-Dec-2013)
Setting maximal mount count to -1
Setting error behavior to 2
Setting interval between checks to 0 seconds
E: Unable to determine a suitable packaging system type
Error: /usr/bin/apt-get failed, exitcode=100
Error: Failed to umount ploop image /vz/tmp//vzpkg.2WxExF/cache-private/root.hdd: Error in ploop_umount_image (ploop.c:2804): Image /vz/tmp/vzpkg.2WxExF/cache-private/root.hdd/root.hds is not mounted 40
VE_PRIVATE is not set
Creation of Container private area failed

service vz restart

systemd for nginx

vim /lib/systemd/system/nginx.service

[Unit]
Description=The NGINX HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target