Skip to content

Instantly share code, notes, and snippets.

Avatar

Łukasz Dywicki splatch

View GitHub Profile
@splatch
splatch / socketcan@.service
Last active Nov 1, 2020 — forked from sebastianhaas/socketcan-interface.service
An example systemd template unit file to setup a SocketCAN interface on startup
View socketcan@.service
[Unit]
Description=SocketCAN interface %i with a baudrate of 500000
After=multi-user.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/ip link set %i type can bitrate 500000 ; /sbin/ifconfig %i up
ExecReload=/sbin/ifconfig %i down ; /sbin/ip link set %i type can bitrate 500000 ; /sbin/ifconfig %i up
ExecStop=/sbin/ifconfig %i down
View datasource.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Austrian Association for Software Tool Integration (AASTI)
under one or more contributor license agreements. See the NOTICE file
distributed with this work for additional information regarding copyright
ownership. The AASTI licenses this file to you under the Apache License,
Version 2.0 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
View gist:4346957
18:26:42,084 INFO [SwitchYardCamelContext] Route: direct:inOut started and consuming from: Endpoint[direct://inOut]
org.switchyard.HandlerException: java.lang.RuntimeException: Runtime error
18:26:42,148 INFO [SwitchYardCamelContext] Apache Camel 2.10.0 (CamelContext: camel-1) is shutting down
at org.switchyard.bus.camel.audit.FaultProcessor.detectHandlerException(FaultProcessor.java:82)
at org.switchyard.bus.camel.audit.FaultProcessor.handle(FaultProcessor.java:73)
at org.switchyard.bus.camel.audit.FaultProcessor$1.done(FaultProcessor.java:57)
at org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:82)
at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:67)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)