Open seanfarley opened 6 years ago
I've run into 1. (not being able to kill those processes). Could you not just run sudo kill ...
?
Yes, but that requires another prompt to the user. In the case above, I added those command to NOPASSWD
and I don't think kill
should be in the NOPASSWD
field because it's a bit to dangerous.
Ah, sorry, that should have been obvious.
I've now created a systemd unit to do this. Is there any way to use prodigy to just call systemctl start ..
and systemctl stop ...
instead of actually launching a program?
Ah, that's not a bad idea! On my mac, I'd have to use launchctl
but yeah, same idea. As for prodigy, it seems some things have to would be tweaked a little to have this "service" idea, I think. Maybe it's possible now but I'm that good with prodigy :-)
I just tried out the new
:sudo
parameter and ran into a few bugs:since the process is spawned with sudo the usual
(signal-process ...)
won't be able to kill it without also gaining elevated permissionsfor commands that are in the sudoers file with
NOPASSWD
, prodigy will still prompt for a password and accidentally send that password to the spawned process as inputIt seems to me that settingI incorrectly tested:cwd "/sudo::/"
is enough? That will use tramp and not interfere with (2) and will also correctly kill the process which solves (1). Thoughts?:cwd
, so I don't have a solution yet :-(