How to restart pulseaudio via systemd?

As my sound is not working well after hibernation, I tried to use systemd to kill pulseaudio while my pc fall asleep and to start it when my pc wakes up. But I can't do this. Following the archwiki, I made to .service files:
root:/etc/systemd/system# cat [email protected]
[Unit]
Description=User suspend actions
Before=sleep.target
[Service]
User=%I
Environment=DISPLAY=:0
Type=oneshot
ExecStart= /usr/bin/pulseaudio -k
ExecStart= /usr/bin/xscreensaver-command --lock
[Install]
WantedBy=sleep.target
and
root:/etc/systemd/system# cat [email protected]
[Unit]
Description=User resume actions
After=suspend.target
[Service]
User=%I
Environment=DISPLAY=:0
Type=oneshot
ExecStart= /usr/bin/start-pulseaudio-x11
[Install]
WantedBy=suspend.target
Next, I enabled them:
root:/etc/systemd/system# systemctl enable [email protected]
ln -s '/etc/systemd/system/[email protected]' '/etc/systemd/system/suspend.target.wants/[email protected]'
root:/etc/systemd/system# systemctl enable [email protected]
ln -s '/etc/systemd/system/[email protected]' '/etc/systemd/system/sleep.target.wants/[email protected]'
I rebooted the system, but this doesn't work. This is what I got when I had started the suspend service.
root:/etc/systemd/system# systemctl start [email protected]
Job for [email protected] failed. See 'systemctl status [email protected]' and 'journalctl -xn' for details.
root:/etc/systemd/system# systemctl status [email protected]
[email protected] - User suspend actions
Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
Active: failed (Result: exit-code) since Tue 2013-04-30 23:09:08 CEST; 14s ago
Process: 5186 ExecStart=/usr/bin/pulseaudio -k (code=exited, status=1/FAILURE)
Apr 30 23:09:08 morfina pulseaudio[5186]: E: [pulseaudio] main.c: Failed to kill daemon: No such process
Apr 30 23:09:08 morfina systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
Apr 30 23:09:08 morfina systemd[1]: Failed to start User suspend actions.
Apr 30 23:09:08 morfina systemd[1]: MESSAGE=Unit [email protected] entered failed state.
root:/etc/systemd/system# journalctl -xn
-- Logs begin at Sun 2013-04-28 00:14:17 CEST, end at Tue 2013-04-30 23:09:08 CEST. --
Apr 30 23:09:08 morfina systemd[1]: Starting User suspend actions...
-- Subject: Unit [email protected] has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit [email protected] has begun starting up.
Apr 30 23:09:08 morfina pulseaudio[5186]: E: [pulseaudio] main.c: Failed to kill daemon: No such process
Apr 30 23:09:08 morfina systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
Apr 30 23:09:08 morfina systemd[1]: Failed to start User suspend actions.
-- Subject: Unit [email protected] has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
-- Unit [email protected] has failed.
-- The result is failed.
Apr 30 23:09:08 morfina systemd[1]: MESSAGE=Unit [email protected] entered failed state.
The most important part:
pulseaudio[5186]: E: [pulseaudio] main.c: Failed to kill daemon: No such process
I don't know why this happens. Pulse demon exists, but systemd cannot kill it because it thinks there is no such process.
root:/etc/systemd/system# ps -eo "user args" | grep pulse
morfik /usr/bin/pulseaudio --start
morfik /usr/lib/pulse/gconf-helper
root grep --color=auto pulse
I can kill pulse in terminal as normal user though.
morfik:~$ /usr/bin/pulseaudio -k
root:/etc/systemd/system# ps -eo "user args" | grep pulse
root grep --color=auto pulse
The same with [email protected]
root:/etc/systemd/system# systemctl start [email protected]
root:/etc/systemd/system# systemctl status [email protected]
[email protected] - User resume actions
Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
Active: inactive (dead) since Tue 2013-04-30 23:32:09 CEST; 2s ago
Process: 7183 ExecStart=/usr/bin/start-pulseaudio-x11 (code=exited, status=0/SUCCESS)
Apr 30 23:32:06 morfina systemd[1]: Starting User resume actions...
Apr 30 23:32:06 morfina pulseaudio[7187]: [pulseaudio] sink.c: Default and alternate sample rates are the same.
Apr 30 23:32:06 morfina pulseaudio[7187]: [pulseaudio] source.c: Default and alternate sample rates are the same.
Apr 30 23:32:09 morfina systemd[1]: Started User resume actions.
But there is no such process.
I tried to start pulse demon using:
/usr/bin/pulseaudio -D
/usr/bin/pulseaudio --start
/usr/bin/start-pulseaudio-x11
and everything goes smooth while I'm doing it as a normal user in a terminal, but when I try to put it into systemd service file, everything starts to break.

OK, I'm a bit further and got a error message now:
In /etc/systemd/system/[email protected] I start the script /home/carl/scripts/reload-sys-mon.sh
but that leads to the following error message:
$ sudo systemctl status resume@carl
[email protected] - User resume actions
Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
Active: deactivating (stop-sigterm) since Do 2013-06-20 10:53:08 CEST; 571ms ago
Process: 1548 ExecStart=/usr/bin/sh -c /home/carl/scripts/reload-sys-mon.sh (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/[email protected]/[email protected]
└─1554 dbus-launch --autolaunch=0b13b59cd91045ad9b746f7b36da8550 --binary-syntax --close-stderr
Jun 20 10:53:05 cookbook systemd[1]: Starting User resume actions...
Jun 20 10:53:05 cookbook systemd[1]: Started User resume actions.
Jun 20 10:53:08 cookbook sh[1548]: Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Shell was not provided by any service files
So the problem is some kind of strange dbus problem: If I execute my reload-sys-mon.sh script directly, it works without problem!
But if systemd calls it, it gives me the error above.
Why?
Reference: the reload-sys-mon.sh script:
#!/bin/bash
sleep 10s && gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Extensions.ReloadExtension [email protected]
exit 0
And indeed, in  /usr/share/dbus-1/services there is no service file for org.gnome.Shell.
Looking at the other files there, making such a file seems not so hard (just 3 lines, e.g. [D-BUS Service]   Name=org.freedesktop.ColorHelper    Exec=/usr/lib/colord/colord-session), but I don't know what to put in the "Exec=" line. I tried Exec=/usr/bin/gnome-shell, but that didn't work.
So does anyone know how to create such a service file for org.gnome.Shell?
Last edited by Carl Karl (2013-06-20 10:30:22)

Similar Messages

  • How to restart base station via SNMP ?

    How to restart airport extreme via SNMP, with snmpwalk for example ? I can get a lot of information from base station with snmpwalk and airport-mib but still mystery what to poke when I want reboot base station over network.

    You are likely forgetting a step.
    Open AirPort Utility
    Click on the Time Capsule icon
    Click Edit in the small window that appears
    Now click the Base Station menu.....top of the screen....not the Base Station "tab" in the center of the screen
    Click Restart

  • Dbus[359]: [system] Activation via systemd failed for unit 'dbus-org.b

    from  journalctl -b, I get some warning messages like this.
    Oct 26 12:52:48 myhost dbus-daemon[359]: dbus[359]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
    Oct 26 12:52:48 myhost dbus[359]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
    Oct 26 12:52:48 myhost dbus-daemon[359]: dbus[359]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.
    Oct 26 12:52:48 myhost dbus[359]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service fail
    Oct 26 12:52:48 myhost pulseaudio[1234]: [pulseaudio] bluetooth-util.c: org.bluez.Manager.ListAdapters() failed: org.freedesktop.systemd1.Lo
    Oct 26 12:52:49 myhost rtkit-daemon[1235]: Successfully made thread 1260 of process 1260 (/usr/bin/pulseaudio) owned by '1000' high priority
    Oct 26 12:52:49 myhost rtkit-daemon[1235]: Supervising 2 threads of 2 processes of 1 users.
    Oct 26 12:52:49 myhost pulseaudio[1260]: [pulseaudio] pid.c: Daemon already running.
    I want to disalbe bluez.service,but failed,
    #systemctl disable dbus-org.bluez.service
    Failed to issue method call: No such file or directory
    I have no bluetooth device in my laptop, how to resolve this porblem?
    Thanks in advance.
    Last edited by eastpeace (2012-10-26 06:12:53)

    AND additional information
    # systemctl status dbus-org.bluez.service
    dbus-org.bluez.service
          Loaded: error (Reason: No such file or directory)
          Active: inactive (dead)

  • Outbound process red flag - how to restart?!

    Hi, well i tried in a previous post to get help but i guess it was a little misunderstanding.
    I have a well processed message but it's not being send to target system, so i get a red flag on column outbound status in SXI_MONI. It's like a system is not available but in this case it is.
    It is File to IDoc Scenario and be sure that i already checked SM59, SX1, SX2 and so on.
    Funny thing is that sometimes message is send properly - when CC read one file - but when it has to read >1 outbound status will be set to error for each message!
    has somebody any clue on this issue?!
    br!!

    Hi,
    it's a FILE2IDoc Scenario i am getting no error at all except of the red flag for outbound process. In detal-view of the message nothing is reported an even the CC-Monitoring is showing nothing because IDoc-Adapter is not part of the Adapter-Engine.
    That's the problem! Because a target systems is connected via VPN to the gateway of the XI. And when the VPN is not active, the message is not being transmitted. But in XI i connat restart it when VPN-Tunnel is active again.
    Any clue on how to restart?!
    br

  • Pulseaudio and systemd --user: DBus scope issues?

    Hi,
    I have a multi-seat setup, so I need user-wide pulseaudio and whatnot. I'm trying to setup my boot through systemd --user.
    Testing audio working apps are firefox, mpv, and mpd. The problem is:
    - If I start pulseaudio and mpd manually everything is fine (no use of systemd)
    - If I start pulseaudio through systemd no application has sound.
    - If I start pulseaudio and mpd through systemd only mpd has sound.
    raimundoyamtech~$ cat .config/systemd/user/pulseaudio.service
    [Unit]
    Description=PulseAudio Sound System
    After=sound.target
    [Service]
    ExecStart=/usr/bin/pulseaudio
    [Install]
    WantedBy=multi-user.target
    raimundoyamtech~$ cat .config/systemd/user/mpd.service
    [Unit]
    Description=Music Player Daemon
    After=network.target sound.target
    [Service]
    ExecStart=/usr/bin/mpd %h/.config/mpd/mpd.conf --no-daemon
    ExecStop=/usr/bin/mpd %h/.config/mpd/mpd.conf --kill
    Restart=always
    [Install]
    WantedBy=multi-user.target
    If I add BusName=org.pulseaudio.Server to the pulseaudio.service nothing changes.
    Using pulseaudio's autospawn=yes leads to what seems to be same behaviour: mpd by systemd starts pulseaudio and is the only app with sound.
    ./config/pulse/client.conf only contains default-sink. Everything else is default.
    Using alsa alone is not an option because of firefox.
    Any thoughts?
    EDIT:
    raimundoyamtech~$ systemctl --version
    systemd 208
    +PAM -LIBWRAP -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ
    raimundoyamtech~$ pulseaudio --version
    pulseaudio 4.0
    Last edited by Raimundo (2013-10-23 10:08:13)

    ewaller wrote:
    Please do not bump.   I understand the frustration; really, I do.  But, these are very active forums with some very good technical people lurking about.  I guarantee your post had been read.  I read it.  I did not have an answer, as I have never seen that behavior afore.   I am certain that was true for many other regulars.
    In the future, you can bring focus to a thread by providing more information..  Tell us what you have tried, what you have read since the last post, etc.  At least it gives the impression that you are working the problem rather than merely waiting for a response.
    I don't know almost anything about systemd, especially because it changes so rapidly and documention is so scarce and outdated that either I read the whole documentantion for my version in hopes of finding my problem (something for which I do not have time) or post a topic.
    I posted everything I touched regarding systemd since the installation of my system, that's all the relevant information I know I can give, so at this point I had no more info to give.
    Actually posting a topic is really my last resort, it usually means that I have already tried everything I knew and I'm hopeless already.
    raimundoyamtech~$ loginctl list-sessions
    SESSION UID USER SEAT
    2 1002 carla seat0
    1 1000 raimundo seat0
    2 sessions listed.
    raimundoyamtech~$ loginctl show-session 1
    Id=1
    Timestamp=Tue 2013-10-29 12:33:47 WET
    TimestampMonotonic=6670234
    VTNr=1
    TTY=tty1
    Remote=no
    Service=login
    Scope=session-1.scope
    Leader=1456
    Audit=1
    Type=tty
    Class=user
    Active=no <----- Is this what you are talking about?
    State=online
    IdleHint=yes
    IdleSinceHint=1383050072367636
    IdleSinceHintMonotonic=0
    Name=raimundo
    raimundoyamtech~$ loginctl show-session 2
    Id=2
    Timestamp=Tue 2013-10-29 12:33:47 WET
    TimestampMonotonic=6667439
    VTNr=2
    TTY=tty2
    Remote=no
    Service=login
    Scope=session-2.scope
    Leader=1453
    Audit=2
    Type=tty
    Class=user
    Active=no <----- Is this what you are talking about?
    State=online
    IdleHint=yes
    IdleSinceHint=1383050025387636
    IdleSinceHintMonotonic=0
    Name=carla
    raimundoyamtech~$ loginctl show-session 3
    Failed to issue method call: No such file or directory
    What is an active session? Oo Never heard of it
    I could start things. Pulseaudio started, so did mpd. I also have a /usr/lib/systemd/systemd --user process started for each user. I assumed this would be it since this
    raimundoyamtech~$ systemctl --user
    Failed to issue method call: Process /bin/false exited with status 1
    always happens and I've read that systemctl --user is no longer required.
    [EDIT]
    Fixed it. Don't remember where I read that it wasn't required, just that it was in the same place I found someone else complaining about getting this error.
    For anyone else encountering this: sed -i s/system-auth/system-login/g /etc/pam.d/systemd-user
    and systemctl --user will work. Insults fly out to the one who wrote it wasn't required!
    Still am not able to get an active session though
    [/EDIT]
    Why would there be a need for anything else? I'm gonna check on that. Thanks!
    See, the bump worked ^^ but ok I'll try to refrain from doing that next time. Sorry.
    Last edited by Raimundo (2013-10-29 16:27:55)

  • How to restart ipad once battery has run down

    how to restart ipad once battery has run down

    The quickest way (and really the only way) to charge your iPad is with the included 10W USB Power Adapter. iPad will also charge, although more slowly, when attached to a computer with a high-power USB port (many recent Mac computers) or with an iPhone Power Adapter (5W). When attached to a computer via a standard USB port (most PCs or older Mac computers) iPad will charge very slowly (but iPad indicates not charging). Make sure your computer is on while charging iPad via USB. If iPad is connected to a computer that’s turned off or is in sleep or standby mode, the iPad battery will continue to drain.
    Apple recommends that once a month you let the iPad fully discharge & then recharge to 100%.
    How to Calibrate Your Mac, iPhone, or iPad Battery
    http://www.macblend.com/how-to-calibrate-your-mac-iphone-or-ipad-battery/
    At this link http://www.tomshardware.com/reviews/galaxy-tab-android-tablet,3014-11.html , tests show that the iPad 2 battery (25 watt-hours) will charge to 90% in 3 hours 1 minute. It will charge to 100% in 4 hours 2 minutes. The new iPad has a larger capacity battery (42 watt-hours), so using the 10W charger will obviously take longer. If you are using your iPad while charging, it will take even longer. It's best to turn your new iPad OFF and charge over night. Also look at The iPad's charging challenge explained http://www.macworld.com/article/1150356/ipadcharging.html
    Also, if you have a 3rd generation iPad, look at
    Apple: iPad Battery Nothing to Get Charged Up About
    http://allthingsd.com/20120327/apple-ipad-battery-nothing-to-get-charged-up-abou t/
    Apple Explains New iPad's Continued Charging Beyond 100% Battery Level
    http://www.macrumors.com/2012/03/27/apple-explains-new-ipads-continued-charging- beyond-100-battery-level/
    New iPad Takes Much Longer to Charge Than iPad 2
    http://www.iphonehacks.com/2012/03/new-ipad-takes-much-longer-to-charge-than-ipa d-2.html
    Apple Batteries - iPad http://www.apple.com/batteries/ipad.html
    Extend iPad Battery Life (Look at pjl123 comment)
    https://discussions.apple.com/thread/3921324?tstart=30
    New iPad Slow to Recharge, Barely Charges During Use
    http://www.pcworld.com/article/252326/new_ipad_slow_to_recharge_barely_charges_d uring_use.html
    Tips About Charging for New iPad 3
    http://goodscool-electronics.blogspot.com/2012/04/tips-about-charging-for-new-ip ad-3.html
    Prolong battery lifespan for iPad / iPad 2 / iPad 3: charging tips
    http://thehowto.wikidot.com/prolong-battery-lifespan-for-ipad
    In rare instances when using the Camera Connection Kit, you may notice that iPad does not charge after using the Camera Connection Kit. Disconnecting and reconnecting the iPad from the charger will resolve this issue.
     Cheers, Tom

  • [SOLVED]How to use pulseaudio with in 32 bit chroot on ARch64

    I am trying to running some 32bit software from chroot environment on Arch64.
    I set up pulseaudio on Arch64 property.
    However, within 32 bit chroot, I cannot use pulseaudio.
    For an example,
    arch32 chroot /home/xxxx/Audio > paplay Front_Center.wav
    Connection failure: Connection refused
    How can I fix this?
    Last edited by phabulosa (2008-04-27 19:37:15)

    I made this to work by the following steps:
    1. Install pulseaudio and alsa-plugin stuff in Arch32;
    2. Edit /etc/pulse/default.pa on Arch64 and enable "load-module module-native-protocol-tcp";
    3. Edit /etc/rc.d/pulseaudio and add a line "cp /var/run/pulse/.pulse-cookie /opt/arch32/etc/pulse-cookie" after pulseaudio line in 'start' part;
    4. Add some lines in /etc/hosts.allow on Arch64 (some of them may not be necessary) ;
    pulseaudio-native: 127.0.0.1
    pulseaudio-simple: 127.0.0.1
    pulseaudio-cli: 127.0.0.1
    pulseaudio-http: 127.0.0.1
    esound: 127.0.0.1
    5. Follow the "PulseAudio over Network" in Arch Wiki on Pulse audio http://wiki.archlinux.org/index.php/Pul … er_network and configure my Arch32 as a remote client on the network while setting the server address as 127.0.0.1;
    6. Restart Pulseaudio daemon on Arch64 and Run "paplay" on Arch32 to test.

  • How to restart Samba

    Hello, how can I restart Samba via the Terminal under OS X 10.5.4?
    I've tried...
    /etc/rc.d/init.d/smb restart
    Not valid under OS X
    sudo killall -HUP smbd
    Not sure if this is working as I get no indication from the terminal that anything has actually happened.
    Thank You

    sudo killall -HUP smbd
    This will only send the HUP signal to all running smbd processes. The processes will trap that signal and do whatever their signal handlers tell them to do (I think a HUP will make them reread their configuration files). You will not get any output when that command completes successfully, so what you're seeing is expected.
    Hello, how can I restart Samba via the Terminal under OS X 10.5.4?
    smbd is managed by launchd, which is the daemon responsible for managing user and system processes. This piece of infrastructure is what runs programs on demand, for example, and is ultimately the parent process of everything in the system.
    The launchctl command is how you interface with launchd. There's a man page that describes how to use launchctl, but in general you could do something like this to stop/start smbd:
    sudo launchctl stop org.samba.smbd
    sudo launchctl start org.samba.smbd

  • How to restart base station from airport utility? I used to be able to do it remotely  I currently use a Mac Pro 10.8.4 and have a time machine for wireless 6.3 (630.34). Sometimes I cannot connect to the internet and use network preferences to diagnose t

    How to restart base station from airport utility? I used to be able to do it remotely
    I currently use a Mac Pro 10.8.4 and have a time machine for wireless 6.3 (630.34). Sometimes I cannot connect to the internet and use network preferences to diagnose the issue. This results in being told to restart the wireless. The airport utility includes the drop down option of restarting but is not clickable so I can't choose it.
    With my prior macbook and same time capsule, etc  if i had problems connecting to the internet I would run network diagnostics to help out. This included clicking on the airport utility ---> base station --> restart. This worked most of the time.
    Bottom line, is there something I am missing in not being able to restart the wi-fi remotely? ]
    Thanks in advance

    You are likely forgetting a step.
    Open AirPort Utility
    Click on the Time Capsule icon
    Click Edit in the small window that appears
    Now click the Base Station menu.....top of the screen....not the Base Station "tab" in the center of the screen
    Click Restart

  • How to Send Appointment via mail adapter

    Hi Guys,
         I need to send the appointment and vTodo via mail adapter, any way i need to develop a mail adapter module. Till now i have finished this part,and i can send normal mail even normal mail with attachment. But i don't know how to send appointment via mail adapter.
    This is payload content of appointment which got from Exchange server to gmail:
    _=_NextPart_001_01C71EC0.97A011C6
    Content-Type: text/plain;
        charset="GB2312"
    Content-Transfer-Encoding: quoted-printable
    When: 2007=C4=EA6=D4=C227=C8=D5=D0=C7=C6=DA=C8=FD 3:30 =CF=C2=CE=E7-4:00 = =CF=C2=CE=E7 (GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi.
    Where: China
    ~*~*~**
    This is calendar content
    _=_NextPart_001_01C71EC0.97A011C6
    Content-class: urn:content-classes:calendarmessage
    Content-Type: text/calendar;
        method=REQUEST;
        name="meeting.ics"
    Content-Transfer-Encoding: 8bit
    BEGIN:VCALENDAR
    METHOD:REQUEST
    PRODID:Microsoft CDO for Microsoft Exchange
    VERSION:2.0
    BEGIN:VTIMEZONE
    TZID:(GMT+01.00) Sarajevo/Warsaw/Zagreb
    X-MICROSOFT-CDO-TZID:21
    BEGIN:STANDARD
    DTSTART:20070112T140000
    TZOFFSETFROM:+0100
    TZOFFSETTO:+0100
    END:STANDARD
    BEGIN:DAYLIGHT
    DTSTART:20070112T140000
    TZOFFSETFROM:+0100
    TZOFFSETTO:+0200
    END:DAYLIGHT
    END:VTIMEZONE
    BEGIN:VEVENT
    DTSTAMP:20061213T141132Z
    DTSTART;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T140000
    SUMMARY:This is calendar test
    UID:040000008200E00074C5B7101A82E0080000000030D51864C81EC701000000000000000
    010000000CA9F127EA8947844BC4DD47F269BDEA9
    ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky":MAILTO:rocky@***.com
    ORGANIZER;CN="Xu":MAILTO:rocky@**.com;roc*@gmail.com
    LOCATION:Shanghai
    DTEND;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T160000
    DESCRIPTION:This is calendar content\N
    SEQUENCE:0
    PRIORITY:5
    CLASS:
    CREATED:20061213T141132Z
    LAST-MODIFIED:20061213T141133Z
    STATUS:CONFIRMED
    TRANSP:OPAQUE
    X-MICROSOFT-CDO-BUSYSTATUS:BUSY
    X-MICROSOFT-CDO-INSTTYPE:0
    X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
    X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
    X-MICROSOFT-CDO-IMPORTANCE:1
    X-MICROSOFT-CDO-OWNERAPPTID:367904726
    X-MICROSOFT-CDO-APPT-SEQUENCE:0
    X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20061213T141132Z
    X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20061213T141132Z
    END:VEVENT
    END:VCALENDAR
    _=_NextPart_001_01C71EC0.97A011C6--
    My question is
      1. How to generate this kind of payload in mail adapter module?
      2. It is possible to send appointment via mail adapter?
    Following i can get from other system, even using mail package check or not using mail package check.
    BEGIN:VCALENDAR
    METHOD:REQUEST
    PRODID:Microsoft CDO for Microsoft Exchange
    VERSION:2.0
    BEGIN:VTIMEZONE
    TZID:(GMT+08.00) Kuala Lumpur/Singapore
    X-MICROSOFT-CDO-TZID:21
    BEGIN:STANDARD
    DTSTART:16010101T000000
    TZOFFSETFROM:+0800
    TZOFFSETTO:+0800
    END:STANDARD
    BEGIN:DAYLIGHT
    DTSTART:16010101T000000
    TZOFFSETFROM:+0800
    TZOFFSETTO:+0800
    END:DAYLIGHT
    END:VTIMEZONE
    BEGIN:VEVENT
    DTSTAMP:20070608T025852Z
    DTSTART;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T110000
    SUMMARY:This is meeting request with attachment
    UID:040000008200E00074C5B7101A82E0080000000000A9BD0BA7A9C701000000000000000
    010000000C5E16D144D1612498C0EF7E2115EFEC4
    ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky
    ":MAILTO:roc*@**
    ORGANIZER;CN="Xu,y":MAILTO:roc*@**
    LOCATION:India labs
    DTEND;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T113000
    DESCRIPTION:This is content!  &#60;&#60;shanghai.txt&#62;&#62; \N
    SEQUENCE:0
    PRIORITY:5
    CLASS:
    CREATED:20070608T025925Z
    LAST-MODIFIED:20070618T033505Z
    STATUS:CONFIRMED
    TRANSP:OPAQUE
    X-MICROSOFT-CDO-BUSYSTATUS:BUSY
    X-MICROSOFT-CDO-INSTTYPE:0
    X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
    X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
    X-MICROSOFT-CDO-IMPORTANCE:1
    ATTACH:CID:008501c7b159$a9d41d3b$_CDOEX
    X-MICROSOFT-CDO-OWNERAPPTID:1468557271
    X-MICROSOFT-CDO-APPT-SEQUENCE:0
    X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20070608T025852Z
    X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20070608T025852Z
    END:VEVENT
    END:VCALENDAR
    Thanks & regards
    Rocky

    Hi
    have a look at this
    You can use Java/ABAP proxies to do this job for you..
    Java Proxy >> will read the mail(with the attachments) with the help of Java APIs and send the message into XI ABAP Proxy >> for this you will have to first convert the attachment into a message and then you can proceed in the regular fashion.
    Not all adapters can process attachments, I'm not sure why you are having trouble with using module processor in the mail adapter. Just check if the service pack that you are using supports this feature.
    If you are on WAS 6.10 and above you can achieve this and there is an excellent weblog by Thomas Jung on this topic at
    /people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
    reading Pdf Through mail easly done with Java Proxy, which will read the mail(with the attachments) with Java APIs and send the message into XI and then map with the Target ABAP proxy structure .
    Thanks

  • How can I tether via USB my iPhone 4S with iOS 7.1.1 to my MacBook with Snow Leopard 10.6.8 and iTunes 11.2.2 ?? Please note that at the same time Personal Hotspot via both WiFi and Bluetooth works perfectly!

    How can I tether via USB my iPhone 4S with iOS 7.1.1 to my MacBook with Snow Leopard 10.6.8 and iTunes 11.2.2 ?? Please note that at the same time Personal Hotspot via both WiFi and Bluetooth works perfectly!

    Hello, lustige luka. 
    Thank you for visiting Apple Support Communities. 
    The Personal Hotspot feature using USB  should be as simple as connecting the device to your Mac via the USB cable when Hotspot is enabled.  Here is some more information regarding this feature and an article that will provide some troubleshooting steps if you are experiencing an issue. 
    iOS: Understanding Personal Hotspot
    http://support.apple.com/kb/ht4517
    iOS: Troubleshooting Personal Hotspot
    http://support.apple.com/kb/TS2756
    Cheers,
    Jason H. 

  • How to restart an workflow if ended in error at SEND Mail step.

    Hello All
          I am facing some problem in restarting the error workflow.
    Issue is:
       Workflow ended in error at the mail notification step, since the mail id is not filled into the container so there is no address (mail id) and ended in error.
       How to restart these kinds of workflow in the system?, we have tried to change the container value by assigning mail id and restarted the workflow but still went into error.
    Is it possible to restart an workflow which ended in error other than rule resolution.
    Regards
    Anand KS

    I think you went in the write approach. I think you have to change the container properly by populating the ADDRESSTRING container element. Also check whether type of email recipient in your container is et to Email.
    Thanks
    Arghadip

  • How to delete PSAs via process chain

    How to delete PSAs via processchain using program(need to delete automatically).
    For that i have to create the processchain for specially deletiung the PSAa and need to write the code for deleting automatically.

    Hi
    Please follow the below steps for PSA processchain deletion.
    Create the Start varint
    Drag the PSA deletion PSA Request from left menu bar proces types
    Click on maintain varinat of the above dragged psa deletion
    There you select like below
    Object Type:PSA
    Objectname:PSA Table name
    Select the below options on the same screen as Older than 10 days ...
    As per your requirement you can select the options..
    Hope it will helps

  • HT5500 how can i get "via iOS" in my postings and comments from my iPhone?

    how can i get "via iOS" in my postings and comments on facebook from my iPhone?

    I have the same issue.  NO "via ios" ONLY "via mobile"
    iPhone 4 - IOS 6.0.1
    iPad 3rd Generation IOS 6.0.1
    FB App installed both devices from Settings//Facebook/Install App using IOS FB Integration with my username/password.
    Troubleshooting Done to this point -
    Uninstalled FB on iPhone and reinstalled again using the FB in Settings/Facebook/Install App. Entered my username/password in Settings/Facebook.
    Turned Wi-Fi off and posted using Cellular connection  (says via mobile).
    Turned Cellular off and posted connected to Wi-Fi  (says via mobile)
    Set iPad 3 back to factory default.
    Reinstalled everything fresh (did not use iCloud backup).
    Installed FB app from Settings/Facebook/Install App. and entered username/password in Settings/Facebook.
    Turned Wi-Fi off and posted using 4G cellular connection.  (says via mobile)
    Turned 4G Cellular off and posted via Wi-Fi  (says via mobile)
    ALL of my posts from both devices show as being "via mobile". This is extremely frustrating since everyone else in the world seems to post status/comments/pictures/etc from their iPhones and iPads and get the "via IOS" except me.
    At first I thought maybe it was an iPhone 4 issue, but the iPad 3 is the newest version of iPad and even it says "posted via mobile" instead of "ios". 

  • How to restart WorkItem if the status is completed

    Hello,
    Due to my mistake in PRD not in DEV i changed the WI status from started to completed.
    Now i have 110 WI affected and i dont know how to restart them, or make them finish normaly the right path.
    In the LOG i can see: Execution was ignored (work item has final status)
    Area: SWF_RUN
    Msg: 568
    Regards
    Laurynas Prikockis
    Edited by: Laurynas Prikockis on Apr 15, 2009 7:59 AM

    Resetting the status of a completed workitem? I think it is not possible , because you can reset the status of a workitem which is in in process state to ready state or the workitem which is in error state( May be not sure) but the status of completed workitem , not possible, because the workitem will not be in any of the users inbox.
    But will let you  know , if there is any possiblity
    Check this error when I tried to reset the status of workitem which is completed by using the FM
    SAP_WAPI_SET_WORKITEM_STATUS
    Status change from COMPLETED to READY is not allowed/possible

Maybe you are looking for