<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thr3a</author_name>
  <author_url>https://blog.hatena.ne.jp/thr3a/</author_url>
  <blog_title>動かざることバグの如し</blog_title>
  <blog_url>https://blog.turai.work/</blog_url>
  <categories>
    <anon>linux</anon>
  </categories>
  <description>環境 systemd 255 やりたいこと 例えば、User=www-data で設定して起動してるSystemdのサービスがあったとする。 ただしソケットファイルの削除やログファイルなど、では=ではroot権限で何か準備して、ExecStart= では www-data で実行したい。 昔は 昔は PermissionsStartOnly=true をつけると動いていたが最近のSystemdでは動作しない。どうやら非推奨になって削除されたっぽい。 現在では プレフィックスとして + をコマンドの先頭に付与する。 ExecStart=+/path/to/command ExecStart=/m…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20251102%2F1762016302&quot; title=&quot;ExecStartPreではrootで実行したい場合はPrefix使え - 動かざることバグの如し&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-11-02 01:58:22</published>
  <title>ExecStartPreではrootで実行したい場合はPrefix使え</title>
  <type>rich</type>
  <url>https://blog.turai.work/entry/20251102/1762016302</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
