[SOLVED] teamviewer for dinit 27 March 2022, 13:12:44 Hi all, I know dinit is relatively new, but I'm using it and its simple, however, I do use teamviewer and in aur, i see s6/openrc and runit, but not one for dinit. I don't have a clue how time consuming it would be to get a teamviewer-dinit made so it would work, so is this the right place to make such a request please? Any response is greatly appreciated in advance, G. Last Edit: 28 March 2022, 12:06:54 by nous
Re: teamviewer for dinit Reply #1 – 27 March 2022, 14:00:40 Quote from: gavincc – on 27 March 2022, 13:12:44in aur, i see s6/openrc and runit, but not one for dinit.You should understand that AUR stands for "Arch User Repository" and is in no way official, neither for Arch nor for Artix. Literally anyone can send PKGBUILDs to AUR, and those packages are not checked nor curated by Arch nor Artix team.Teamviewer is a non-Free, proprietary program, so from the Free Software developer perspective there is no incentive to create packages for it.Arch forum has a subforum for AUR requests.
Re: teamviewer for dinit Reply #2 – 27 March 2022, 14:55:09 yea, i been using arch for quite a few years so i do know what aur is, i just thought this might be a good place to start what with there not being many arch users using anything other than systemd, and certainly even fewer using dinit, but thanks anyway. It'll probably be infinitely quicker just to ditch dinit and use runit instead, so reckon i'll do that. Last Edit: 27 March 2022, 15:34:35 by gavincc
Re: teamviewer for dinit Reply #3 – 28 March 2022, 08:49:55 Don't switch dinitwith few edits runit service can be used with dinit 1 Likes
Re: teamviewer for dinit Reply #4 – 28 March 2022, 08:57:59 Code: [Select]type = processcommand = /opt/teamviewer/tv_bin/teamviewerd -flogfile = /var/log/dinit/teamviewerd.logpid-file = /var/run/teamviewerd.piddepends-on = dbuswaits-for = networkPut above lines at /etc/dinit.d/teamviewerdIssue:Stopping service do not kill teamviewerd processWorkaround:# pkill teamviewerd[ /li]---If I made any mistake point it Last Edit: 29 March 2022, 17:45:54 by Arch_user 1 Likes
Re: teamviewer for dinit Reply #5 – 28 March 2022, 11:07:25 Quote from: Arch_user – on 28 March 2022, 08:57:59Code: [Select]type = processcommand = /opt/teamviewer/tv_bin/teamviewerd -dlogfile = /var/log/dinit/teamviewer.logpid-file = /var/run/teamviewerd.piddepends-on = dbuswaits-for = networkPut above lines at /etc/dinit.d/teamviewerEdit: I found issue that , stopping service do not kill teamviewer process---If I made any mistake point itthank you so much! You're an absolute star, worked perfectly, cheers again. G
Re: [SOLVED] teamviewer for dinit Reply #6 – 28 March 2022, 12:55:20 @gavincc I made minor tweaks (changed service name, log file name) Update it Last Edit: 28 March 2022, 13:04:49 by Arch_user 1 Likes
Re: [SOLVED] teamviewer for dinit Reply #7 – 28 March 2022, 15:26:52 @Arch_user You can replace Code: [Select]command = /opt/teamviewer/tv_bin/teamviewerd -d withCode: [Select]command = /opt/teamviewer/tv_bin/teamviewerd -fso teamviewerd stays in the foreground and is able to monitored and stopped with dinit normally.This is also what the runit service does, by the way. 1 Likes
Re: [SOLVED] teamviewer for dinit Reply #8 – 28 March 2022, 16:00:55 Quote from: capezotte – on 28 March 2022, 15:26:52@Arch_user You can replace Code: [Select]command = /opt/teamviewer/tv_bin/teamviewerd -d withCode: [Select]command = /opt/teamviewer/tv_bin/teamviewerd -fso teamviewerd stays in the foreground and is able to monitored and stopped with dinit normally.This is also what the runit service does, by the way.excuse my ignorance as I'm all a bit new to dinit switches, but what does replacing -d with -f do in real terms? Because i put the original set of lines in, then ran sudo dinitctl enable teamviewer to start the service (not the app.) on a fresh boot and all's good. Just curious, thanks.
Re: [SOLVED] teamviewer for dinit Reply #9 – 28 March 2022, 16:19:56 It's not a switch for dinit; it's a switch for the teamviewer executable/command. It ultimately removes the need for the pkill teamviewerd workaround.type = process dinit services, like runit services, need the executable to stay on the foreground, or else they can't be monitored and starting/auto-restarting/stopping them is not possible. The -d option makes TeamViewer go in the background, so dinit loses track of it (as runit would). The service itself is still running (despite being in the background), so it "works".Another option would be to change to a type = bgprocess service (then dinit will rely on the PID file instead of assuming it is able to monitor and stop the service directly). 3 Likes
Re: [SOLVED] teamviewer for dinit Reply #10 – 28 March 2022, 16:23:02 got it - that now makes perfect sense. Thanks.
Re: [SOLVED] teamviewer for dinit Reply #11 – 29 March 2022, 17:41:55 @capezotte Thanks for explanation