fix: ubuntu 18.04, service, Exec format error (#8680)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
b5a7165015
commit
2391b18046
@ -16,6 +16,12 @@ if [ "$1" = configure ]; then
|
|||||||
parsedVersion=$(echo "${version//./}")
|
parsedVersion=$(echo "${version//./}")
|
||||||
mkdir -p /usr/lib/systemd/system/
|
mkdir -p /usr/lib/systemd/system/
|
||||||
cp /usr/share/rustdesk/files/systemd/rustdesk.service /usr/lib/systemd/system/rustdesk.service
|
cp /usr/share/rustdesk/files/systemd/rustdesk.service /usr/lib/systemd/system/rustdesk.service
|
||||||
|
# try fix error in Ubuntu 18.04
|
||||||
|
# Failed to reload rustdesk.service: Unit rustdesk.service is not loaded properly: Exec format error.
|
||||||
|
# /usr/lib/systemd/system/rustdesk.service:10: Executable path is not absolute: pkill -f "rustdesk --"
|
||||||
|
if [ -e /usr/bin/pkill ]; then
|
||||||
|
sed -i "s|pkill|/usr/bin/pkill|g" /usr/lib/systemd/system/rustdesk.service
|
||||||
|
fi
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable rustdesk
|
systemctl enable rustdesk
|
||||||
systemctl start rustdesk
|
systemctl start rustdesk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user