<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Systemd on Ayman Bagabas</title><link>https://aymanbagabas.com/tags/systemd/</link><description>Recent content in Systemd on Ayman Bagabas</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 18 Jul 2018 00:00:00 +0000</lastBuildDate><atom:link href="https://aymanbagabas.com/tags/systemd/index.xml" rel="self" type="application/rss+xml"/><item><title>Suspend then hibernate in systemd 239</title><link>https://aymanbagabas.com/blog/2018/07/18/suspend-then-hibernate/</link><pubDate>Wed, 18 Jul 2018 00:00:00 +0000</pubDate><guid>https://aymanbagabas.com/blog/2018/07/18/suspend-then-hibernate/</guid><description>&lt;p&gt;In &lt;em&gt;systemd&lt;/em&gt; 239, they have added a new service that handles suspending then hibernating after a given amount of time. This is easier than using external scripts since it comes built-in with this version of &lt;em&gt;systemd&lt;/em&gt;. You can check &lt;em&gt;systemd&lt;/em&gt; version with &lt;code&gt;systemctl --version&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;First, you have to define the delay time before the system wakes up and go into hibernation and that should be defined in &lt;em&gt;/etc/systemd/sleep.conf&lt;/em&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;[Sleep]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;HibernateDelaySec=15min
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Here, what we care about is the last line &lt;code&gt;HibernateDelaySec&lt;/code&gt; where you can define delayed time. As you see, I have it set to 15 minutes after suspending.&lt;/p&gt;</description></item><item><title>Dropbox client on Ubuntu server 16.04</title><link>https://aymanbagabas.com/blog/2017/08/06/dropbox-client-on-ubuntu-server-16-04/</link><pubDate>Sun, 06 Aug 2017 23:19:00 +0000</pubDate><guid>https://aymanbagabas.com/blog/2017/08/06/dropbox-client-on-ubuntu-server-16-04/</guid><description>&lt;p&gt;Dropbox, in my opinion, is the best cloud service available. I wanted to have one shared dropbox folder that is accessible from all my virtual machines running on the server. I am using a ZFS drive as a storage drive, the dropbox folder is located in the ZFS drive. Dropbox service is running as a normal user, not the root, and the server is using systemd to start the service after booting the system.&lt;/p&gt;</description></item></channel></rss>