Re: [systemd-devel] StartTransientService problems

2014-02-03 Thread barry.sc...@onelan.com
On Fri 31 Jan 2014 16:42:04 Barry Scott wrote:
> I have finally managed to get StartTransientService to run a process for me
> but I'm encountering issues:
> 
> we start a daemon that calls StartTransientService as required. The daemon
> does not run as root, it runs as "onelan". We configure dbus to allow
> "onelan" to call all systemd Manager APIs.
> 
> I want to set the User, Nice and Type of the service. I get the errors:
> 
> DBusException: org.freedesktop.DBus.Error.PropertyReadOnly: Cannot set
> property User, or unknown property.
> 
> DBusException: org.freedesktop.DBus.Error.PropertyReadOnly: Cannot set
> property Type, or unknown property.
> 
> DBusException: org.freedesktop.DBus.Error.PropertyReadOnly: Cannot set
> property Nice, or unknown property.
> 
> What do I need to do to allow these properties to be set?
> 
> I also need to set the Environment. I can pass the environment in as a
> property but it does not show up the the process created or in
> systemctl status for the transient service. I do not see any messages in
> the systemd logging.

Correction I get an error for Environment as well.

DBusException: org.freedesktop.DBus.Error.PropertyReadOnly: Cannot set 
property Environment, or unknown property.

> 
> And lastly what do I have to do to remove the transient service from systemd
> after the last process in the service exits? RemainAfterExit=no
> 
> Barry
> 
> ___
> systemd-devel mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- 
Barry Scott
Head of Player Development
ONELAN Limited

___
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] Patch to fix hint message

2014-02-03 Thread barry.sc...@onelan.com
The use of the ... (ellipsis) is to "elide" text.
Ellipsized is not in the dictionary.

If you are willing to take this fix I could develop a patch to fix the 
variables used in the code as well.

Barry


--- systemd-208/src/systemctl/systemctl.c.orig  2014-02-03 17:02:32.830744599 
+
+++ systemd-208/src/systemctl/systemctl.c   2014-01-21 18:13:09.969496348 
+
@@ -3619,7 +3619,7 @@
 }
 
 if (ellipsized && !arg_quiet)
-printf("Hint: Some lines were elided, use -l to show in full.
\n");
+printf("Hint: Some lines were ellipsized, use -l to show in 
full.\n");
 
 return ret;
 }

-- 
Barry Scott
Head of Player Development
ONELAN Limited

___
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel