Chris's Wiki :: blog/linux/SystemdNeedsBestPractices Commentshttps://utcc.utoronto.ca/~cks/space/blog/linux/SystemdNeedsBestPractices?atomcommentsDWiki2019-11-09T14:19:27ZRecent comments in Chris's Wiki :: blog/linux/SystemdNeedsBestPractices.By wodny on /blog/linux/SystemdNeedsBestPracticestag:CSpace:blog/linux/SystemdNeedsBestPractices:db95a509bad683dec5b99e64e0717a4ac6eb31c0wodny<div class="wikitext"><p>Probably every project would benefit from having 4 kinds of documentation as described by Daniele Procida[1]: tutorials, how-to guides, technical reference, discussion/explanation.</p>
<p>[1]: <a href="https://www.divio.com/blog/documentation/">https://www.divio.com/blog/documentation/</a></p>
</div>2019-11-09T14:19:27ZBy keur on /blog/linux/SystemdNeedsBestPracticestag:CSpace:blog/linux/SystemdNeedsBestPractices:8fce2f2c94bbbee682bc17ccbf60035511eb3bd8keur<div class="wikitext"><p>More than them providing best practices as part of the documentation, I would go one step further and recommend the install comes with units to achieve basic tasks. In reference to our conversation yesterday, it would be good if there was a 'sendmail.service' unit as part of the install. Then it could very clearly be stated in the timers documentation that, if you want to emulate cron, you set OnFailure=sendmail.service.</p>
<p>Appreciate the follow-up.</p>
</div>2019-11-06T17:42:29ZFrom 193.219.181.226 on /blog/linux/SystemdNeedsBestPracticestag:CSpace:blog/linux/SystemdNeedsBestPractices:39dbfe8377652da8668e8d8e7404d6b176937df2From 193.219.181.226<div class="wikitext"><p>Most importantly there should be an article: "When not to use systemd."</p>
<p>Sometimes timers aren't as good as cron jobs (despite how many people insist that writing 10 lines is easier than writing 1 line... it's literally the opposite situation of short .service units having replaced long initscripts), and sometimes systemd services aren't as good as a traditional X11 session manager, and sometimes automated voodoo magic isn't as good as traditional static configuration <code>(*cough*</code> DynamicUsers).</p>
<p>Took me a good 7 years of systemd usage to grow out of the fanboy stage.</p>
</div>2019-11-06T08:43:00Z