Comments (8)
Just to confirm, for my use case, sleep is useless.
Kids left 'Lego Marvel' on pause, TV got turned OFF, MikroTik sent REST sleep command, the machine went to sleep, but a day later when we wanted it back on, we were greeted with a lovely 'Lego Marvel has stopped working' window.
So, this usage scenario 'windows as a console' really needs shutdown, not sleep.
Thanks.
from sleep-on-lan.
New debug info:
Custom commands DO work when I start sol.exe from command prompt.
Custom commands DO NOT work when sol.exe runs as a service via NSSM (privileges?).
Hope this helps.
from sleep-on-lan.
Yup, this solves it for me:
Completely removed NSSM and service mode, created a shortcut to sol.exe with shortcut properties 'run minimized' and copied that shortcut to StartUp.
Thanks.
from sleep-on-lan.
Pretty sure the problem is about the current directory, once executed through a service, the current path is probably elsewhere, and thus the default JSON config (stored next to the sol.exe binary) is not found (the program just use its default configuration in that situation). Don't know if i can do anything about this when using it as a service.
Your workaround is probably the best, closing the issue for the now.
from sleep-on-lan.
@SR-G Not really. Having the same issue. JSON config gets picked up (changing HTTP:<port>
actually affects server's port at start), but halt command doesn't work unfortunately.
Hitting http://192.168.1.2:8007/halt
, just returns:
<result>
<application>sleep-on-lan</application>
<hosts>
<host ip="0.0.0.0" mac="00:ff:19:44:3e:9f"/>
<host ip="192.168.1.2" mac="d8:50:e6:41:03:8d"/>
</hosts>
<listeners>
<listener type="UDP" port="9" active="true"/>
<listener type="UDP" port="7" active="true"/>
<listener type="HTTP" port="8007" active="true"/>
</listeners>
</result>
from sleep-on-lan.
Can you try with the latest 1.0.2-SNAPSHOT version ? https://github.com/SR-G/sleep-on-lan/releases
Obviously commands are not read, based on your start logs. Either you have an old version (there should be both some informations about the configuration file used, and read commands should be displayed in the start logs), either there is something wrong with the JSON configuration (but at first glance i don't see what could be wrong).
from sleep-on-lan.
@SR-G Oh, you are right. I was using 1.0.0 mentioned in README.md haha.
Just a suggestion, you could just give a link to https://github.com/SR-G/sleep-on-lan/releases page.
from sleep-on-lan.
Good point indeed, corrected.
from sleep-on-lan.
Related Issues (20)
- Getting confused with syntax and versions HOT 6
- Block program start in case of configuration errors HOT 1
- New command allowing to generate the whole configuration from code
- Switch logging framework to logrus
- Add missing target platform
- add commands doesn't work HOT 12
- Only allow expected command types in custom commands definition
- Log file or event log on Windows? HOT 2
- Incorrect example for Commands? HOT 3
- Have better "default configuration" generated
- Split the ZIP distribution into one archive per platform
- Split README.md into separated pages
- New --verbose parameter
- Extra default filenames
- Logs where not displaying timestamps in line with system's timezone
- No response for HTTP sleep HOT 2
- Have extra delay before executing command HOT 3
- PC sleeps immediately after Wake on Lan after having used sleep on lan HOT 5
- Wake on LAN works strange when service work HOT 1
- Create non-console version, so conhost.exe doesn't also need to run HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sleep-on-lan.