systemd service unit fixes#109
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type
Side Effects
Goals
Technical Details
forkingtosimpleand remove extra corresponding service lines (PIDFile) and daemon arguments (-B,-P).netremote-serverunit ExecStartfromsbintobin` where it's actually installed.Test Results
cmake --build /home/shadowfax/src/microsoft/netremote-cmake/out/build/dev-linux --parallel 14 --target installcd /etc/systemd/systemsudo ln -s /home/shadowfax/src/microsoft/netremote-cmake/out/build/dev-linux/install/etc/systemd/system/hostapd@.servicesudo ln -s /home/shadowfax/src/microsoft/netremote-cmake/out/build/dev-linux/install/etc/systemd/system/netremote-server.servicesudo systemctl daemon-reloadsudo systemctl enable hostapd@wlan0sudo systemctl start hostapd@wlan0sudo systemctl status hostapd@wlan0.service netremote-server.serviceVerfidied below output showed both services as active/running:
● hostapd@wlan0.service - Hostapd Daemon Loaded: loaded (/etc/systemd/system/hostapd@wlan0.service; enabled; preset: enabled) Active: active (running) since Tue 2024-01-16 20:58:43 MST; 12min ago Main PID: 18192 (hostapd) Tasks: 1 (limit: 38513) Memory: 1.0M CGroup: /system.slice/system-hostapd.slice/hostapd@wlan0.service └─18192 /home/shadowfax/src/microsoft/netremote-cmake/out/install/dev-linux/sbin/hostapd -i wlan0 /home/shadowfax/src/microsoft/netremote-cmake/out/install/dev-linux/etc/hostapd/hostapd-wlan0.conf Jan 16 20:58:43 foxmulder systemd[1]: hostapd@wlan0.service: Changed failed -> running Jan 16 20:58:43 foxmulder systemd[1]: hostapd@wlan0.service: Job 1452 hostapd@wlan0.service/start finished, result=done Jan 16 20:58:43 foxmulder systemd[1]: Started hostapd@wlan0.service - Hostapd Daemon. Jan 16 20:58:43 foxmulder (hostapd)[18192]: hostapd@wlan0.service: Executing: /home/shadowfax/src/microsoft/netremote-cmake/out/install/dev-linux/sbin/hostapd -i wlan0 /home/shadowfax/src/microsoft/netremote-cmake/out/install/dev-linux/etc/hostapd/hostapd-wla> Jan 16 20:58:43 foxmulder hostapd[18192]: wlan0: interface state UNINITIALIZED->ENABLED Jan 16 20:58:43 foxmulder hostapd[18192]: wlan0: AP-ENABLED Jan 16 21:02:28 foxmulder systemd[1]: hostapd@wlan0.service: Current command vanished from the unit file. ... ● netremote-server.service - Netremote Daemon Loaded: loaded (/etc/systemd/system/netremote-server.service; enabled; preset: enabled) Active: active (running) since Tue 2024-01-16 20:36:17 MST; 34min ago Main PID: 6373 (netremote-serve) Tasks: 18 (limit: 38513) Memory: 5.3M CGroup: /system.slice/netremote-server.service └─6373 /home/shadowfax/src/microsoft/netremote-cmake/out/install/dev-linux/bin/netremote-server Jan 16 20:36:17 foxmulder systemd[1]: Started netremote-server.service - Netremote Daemon. ...Reviewer Focus
Future Work
installDirlike a typical installation (eg./).Checklist
allcompiles cleanly.