日々の作業で出てきた技術メモの切れ端を置いておくページ
systemdのサービス定義ファイルが怒られたときに確かめるやつ
serviceを作って systemct enable xxxx.serviceとするとfile not existなどとなってしまい、登録できないとき。
systemct enable xxxx.service
systemctl daemon-reload
systemd-analyze xxxx.service
/etc/systemd/system/multi-user.target.wants/snap-core18-2620.mount: symlinks are not allowed for units of this type, rejecting. /etc/systemd/system/multi-user.target.wants/snap-snapd-16292.mount: symlinks are not allowed for units of this type, rejecting. /etc/systemd/system/multi-user.target.wants/snap-amazon\x2dssm\x2dagent-6312.mount: symlinks are not allowed for units of this type, rejecting. /etc/systemd/system/multi-user.target.wants/snap-core20-1695.mount: symlinks are not allowed for units of this type, rejecting. /etc/systemd/system/multi-user.target.wants/snap-lxd-23541.mount: symlinks are not allowed for units of this type, rejecting. /etc/systemd/system/multi-user.target.wants/snap-core18-2560.mount: symlinks are not allowed for units of this type, rejecting. /etc/systemd/system/multi-user.target.wants/snap-snapd-17336.mount: symlinks are not allowed for units of this type, rejecting. /etc/systemd/system/multi-user.target.wants/snap-amazon\x2dssm\x2dagent-5656.mount: symlinks are not allowed for units of this type, rejecting. /etc/systemd/system/multi-user.target.wants/snap-core20-1634.mount: symlinks are not allowed for units of this type, rejecting. /etc/systemd/system/multi-user.target.wants/minecraft.service:6: Neither a valid executable name nor an absolute path: LD_LIBRARY_PATH=/var/bedrock /var/bedrock/bedrock_server minecraft.service: Unit configuration has fatal error, unit will not be started. Unit minecraft.service has a bad unit file setting.
こんな感じになる。良い。