forked from pool/wine-binfmt
Marcus Meissner
917319f368
- add systemd service - renamed to wine-binfmt OBS-URL: https://build.opensuse.org/request/show/713604 OBS-URL: https://build.opensuse.org/package/show/Emulators:Wine/wine-binfmt?expand=0&rev=1
15 lines
596 B
Desktop File
15 lines
596 B
Desktop File
[Unit]
|
|
Description=Wine binfmt support
|
|
After=syslog.target network.target
|
|
Requires=systemd-binfmt.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=true
|
|
ExecStart=-/bin/sh -c "if test -L /etc/binfmt.d/wine.conf; then rm /etc/binfmt.d/wine.conf; fi; /usr/bin/systemctl restart systemd-binfmt.service; test -f /proc/sys/fs/binfmt_misc/DOSWin"
|
|
ExecStop=-/bin/sh -c "ln -fs /dev/null /etc/binfmt.d/wine.conf; /usr/bin/systemctl restart systemd-binfmt.service; ! test -f /proc/sys/fs/binfmt_misc/DOSWin"
|
|
ExecReload=/usr/bin/systemctl restart systemd-binfmt.service
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|