Red Hatã®æ£®è¥ã§ãã èªåã§systemdã®service unitãä½ãã¨ãã«ãèµ·åç¨ã®ããã¤ãã®ã³ãã³ããè¨è¿°ããã·ã§ã«ã¹ã¯ãªãããå¼ã¶äºã¯(çæ³çã§ã¯ãªãã§ãã)ãããã¨æãã¾ãã ä»åã¯ãã®å ´åã«ãsudoãå©ç¨ããã¨ã¾ããçç±ã説æãã¦ããããã«setprivã使ãã»ããããã¨ãã話ã§ãã ä¾é¡ç¨ã®service å®è¡ãã¦ã¿ã å¥ã®cgroupã ã¨ä½ãã¾ããã®ã? 対çã¯setprivã³ãã³ã ä¾é¡ç¨ã®service sudoã«ããã¾ããåä½ã確èªããããã®ã§ããã ãåç´ãªä¾ã¨ãã¦ãhoge.service ãç¨æãã¾ãã /opt/hoge/hoge.sh #!/bin/bash sudo -u moriwaka sleep 5000 /etc/systemd/system/hoge.service [Unit] Description=hoge [Service] Ty
{{#tags}}- {{label}}
{{/tags}}